question-mark
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.

Server Error (500) with DEBUG=False

See original GitHub issue

This is my first post to GitHub, so I am hopeful that I am submitting this information in the proper manner.

I could not find this in documentation anywhere, but ran into an issue and a solution. I recommend updating the documentation for this solution.

I setup Summernote in my Django3 Project. Everything looked perfect. I deployed to Heroku, but then could not access anything where Summernote was enabled. I was getting a Server Error (500). After checking quite a few different things, I realized the difference was that in my push to Heroku, my DEBUG is set to False. I changed this same setting in my dev environment and sure enough, same result.

After hours of trying to track down the problem, I decided to move on for the time being and install a different Rich Text Editor. It was during the installation of that other editor where they had one line for their documentation. python manage.py collectstatic

I realized that some static files had caused me problems previously, causing a 500 error when Debug was set to False. I figured, why not give this a try.

Once I ran this, Summernote started working without issue.

I pushed to Heroku, and everything is working as expected. Not a bug in the application, just recommending adding one line to the documentation.

Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lqezcommented, Oct 14, 2021
0reactions
soflacoderchickcommented, Jan 23, 2022

Thank you, rahulmars007 – I finally figured this out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting DEBUG = False causes 500 Error - Google Groups
To debug a problem that only appears with DEBUG=False, you must set ADMINS to include a valid email address to send error reports...
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 >
Why am I getting a 500 server error when debug=False in ...
Do you have any urls configured yet? I ran into the 500 error on my heroku deployment when i set DEBUG=False until I...
Read more >
How To Fix - "HTTP 500 Server Error" When Setting DEBUG ...
Some static files might also cause this problem when Debug was set to False. The server might not be able to find some...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found