Thursday, 15 August 2013

Django error page doesn't show with syntax error

Django error page doesn't show with syntax error

I have a custom Django 500 page and debug set to False. When my app
encounters a runtime error, I get the Django stack trace as expected.
However when I have a syntax error, I get the cryptic Apache "Internal
Server Error" page, and have to debug Django by tailing the apache log.
Why doesn't Django show the error page?
I believe I used to get Django error pages for all errors - not just
runtime ones.
Any help would be greatly appreciated.

No comments:

Post a Comment