It is running under DEBUG = True mode. Sometimes it can throw out an error message with traceback information when encounter an error but sometimes it just display the following lines:
Unhandled Exception
An unhandled exception was thrown by the application.
I have to switch to development server to see detail message.
How can I make it always display traceback message when an error is encountered?
Maybe you can use this snippet, this will log exceptions in apache’s log:
utils.py:site_logging.py:Put it in your
settings.py:And in your code: