Internal Server Error when DEBUG = False
See original GitHub issueHi all,
Just deployed my vanilla app to Heroku and I started receiving “Bad Request” responses from any URL. After some investigation I’ve discovered there appears to be a problem when DEBUG is set to False.
I’ve created a brand new virtualenv with only the requirements.txt installed, updated:
proj/settings/__init__.py
from .production import *
I’ve run the same code via Vagrant incase it was my machine’s setup but 500s no matter what I try until I set DEBUG to True.
Any help or suggestions would be appreciated.
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Setting DEBUG = False causes 500 Error - django
In my case, the error was caused because the server was not finding some static files from the homepage. So make sure the...
Read more >Internal server error when DEBUG = False *and* page errors ...
Background: I just deployed a site on DigitalOcean using functioning, apparently error-free development code. After confirming the production site loaded ok and ...
Read more >500 Server Error on Django on App Service when Debug=False
When I set Debug=False in my django app deployed to Azure App Service I get a 500 Server Error whenever I try to...
Read more >Server 500 error only when deploying to Heroku with DEBUG ...
I have an ON_HEROKU=1 config variable set through the Heroku dashboard for the app, which causes the branch in settings.py to set DEBUG...
Read more >Server Error (500) with DEBUG=False · Issue #426 - GitHub
I setup Summernote in my Django3 Project. Everything looked perfect. I deployed to Heroku, but then could not access anything where Summernote ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It should be [‘*’, ] I guess, note the ,
I had the same problem and I remember fixing it that way. ALLOWED_HOSTS = [‘*’, ]
Also consider using debug tools like getsentry.com to catch such production errors
Closing as general support queries should now be posted in the Google Group. Please post there if you are still having problems.
https://groups.google.com/forum/#!forum/wagtail