Still getting 500 even after adding the templates and the url

If Debug is true everything works, But if I turn debug to true, I always get 500, even for admin or any other url (even non existing urls which are supposed to give 404 give 500)

Sorry You must be a logged in, registered user to answer a question.

Answers

For some reason I had in my settings ALLOWED_HOSTS = []. I changed it to ALLOWED_HOSTS = ['*'] and it worked.

TI think a better solution is to add your heroku url in your base.py and add * in your local.py. so something like ALLOWED_HOSS=['hungry-hippos-1234.herkouapp.com'] or whatever your heroku app is named and only use the ['*'] for your local.py
ricka on
http://stackoverflow.com/questions/15128135/django-setting-debug-false-causes-500-error
Arne Fostvedt on
Please see this SO answer for some more details on ALLOWED_HOSTS. Apparently, it's a 1.5 addition and bypassing it ( by allowing all hosts ) is not recommended :
Arne Fostvedt on
Had the same error when re-running through the tutorial (using django 1.5) - the above solved the issue.
steve on