1

Website is fine when debug is true, but when set to false it gives me a server error 500 evertime on every page. When i go into heroku logs --tail it tells me there is a status 500 issue. I have set up my allowed host so that is not an issue.

Does anyone have any suggestions on what the root of the issue could be?

Would appreciate any advice, thanks.

ethan678
  • 11
  • 1
  • What do the heroku logs say? Does it show a stack trace? Just saying you are getting a 500 error is too broad to troubleshoot. – unex Sep 15 '20 at 17:51
  • Try this: https://www.youtube.com/watch?v=kBwhtEIXGII, was helpful for me – ViLuWi Sep 15 '20 at 18:06

1 Answers1

0

Try adding DEBUG_PROPAGATE_EXCEPTIONS = True in your setting.py. with this, you can see the errors in the log.

Secondly, the major cause to this error is usually the static files serving via whitenoise. Run heroku run python manage.py collectstatic, but before that make sure your STATIC_ROOT is correct.

Muhammed Mahir
  • 178
  • 4
  • 11