views:

224

answers:

2

I'm coding a small application with Django. But I can't see any error logs in the console when an error (e.g. Python syntax error, etc.) occurs in one of my views -no action at all.

How can I see the error logs of my views? Debugging like a blind is really annoying.

+2  A: 

Django does not print any errors to the console by default. Instead it provides very helpful error pages that are displayed for any errors that occur in your views. Please check what your DEBUG setting is set to. In development this should be True which will give you the nice error pages for 404 and 500 errors.

The pretty error page will look like this: django error page

I can also recommend the talk What the Heck Went Wrong? from DjangoCon2009 for some more information on basic debugging technics with django.

Gregor Müllegger
Thanks for the reply. My DEBUG option is True but I need to get error messages from the console (where I run the "manage.py runserver" command). Is there an option for that?
Stephen T.
A: 

I think this can help you: http://stackoverflow.com/questions/1925898

diegueus9