On 05-09-11 00:58, Gelonida N wrote:
Im am debugging a django application.
If I set DEBUG=True
then I can see error messages on the browser.
Is there any way to see the same error messages in the server log file?
Occasionally (especially for rpc client or Ajax requests I would prefer
looking at the log file instead of looking at the browser error messages)
With django 1.3, those 500 errors are logged to python's default
logging. So if you've got django 1.3 and a properly set up logging,
you'd get those logs.
If you're using django 1.2, you could use a middlewar such as
http://djangosnippets.org/snippets/421/ . I've used that one for almost
a year. Works like a charm.
But... hurray for django 1.3 for including it in the regular python
logging :-)
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.