Tip for Debugging “Internal Server Error” in Django

Usually I can debug “Internal Server Error” by looking at the server logs. But recently I ran into this error and it left no message in the logs, making it pretty difficult to debug. This command revealed the problem:

python manage.py shell --traceback

the problem was in the settings file. Too early in the chain of events to put a message in the logs.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s