Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Internal Server Error when DEBUG = False

See original GitHub issue

Hi 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:


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:closed
  • Created 9 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

felixcheruiyotcommented, Dec 24, 2014

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 to catch such production errors

kaedrohocommented, Mar 25, 2015

Closing as general support queries should now be posted in the Google Group. Please post there if you are still having problems.!forum/wagtail

Read more comments on GitHub >

github_iconTop 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 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found