Wednesday, October 23, 2019

Re: Admin site error reporting

Well, assuming you have followed all the advice given in that link I posted and have eliminated all those sources of error, then it seems like you will need to add more error trapping to pin down where the error occurs.  If the log files are not been written to (which itself seems problematic & you'll need to see why), then try simply writing out key steps to a text file so you can at least see where your code is malfunctioning.

On Wednesday, 23 October 2019 13:52:20 UTC+2, Dieter Gyselinck wrote:
Thanx for the response.  The normal logging works, I see errors in the error log file if they occur outside the Django Admin.  However, the error with the change form in the admin does not occur in the logfiles.  Same behaviour as with the error mailing.  

Op woensdag 23 oktober 2019 10:57:05 UTC+2 schreef Derek:
Does the normal logging work i.e. are you seeing those errors reported in the log files?  And do you have trapping/handling for the email-sending code as well?

Also have a look at: 
for a brief discussion around the difference between running your app with DEBUG on or off and how logging can help with this.


On Tuesday, 22 October 2019 14:32:50 UTC+2, Dieter Gyselinck wrote:
When a change form is accessed in the admin site and an error occurs we receive an error screen if debug equals True.  If I  run into the same error on production, where debug equals False, I don't receive an error email.  The error handling is probably configured correctly as I do get error emails when the error occurs outside of the admin pages.  I have the impression that there is an issue with the error reporting in the admin.  Does anybody know what is happening and is there a possible solution?  

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9052904-6b8e-421e-9127-c1553bc88604%40googlegroups.com.

No comments:

Post a Comment