DEV Community

Billy Okeyo
Billy Okeyo

Posted on

Server Error 500

Has any of you ever experienced a server error on django app hosted in heroku when you set your debug to False. When the debug is True, it runs well. I've checked my allowed hosts and it's okay. Can it be a problem with static files? How do i solve this error?

Top comments (2)

Collapse
 
eddieishere profile image
eddieishere

Yep! Not on Heroku but I've experienced it a lot. For me, it's usually a problem somewhere in my templates, like a URL for a static file that contains a slash that works in dev but not in production. Or it could be 'allowed hosts' that might include the wrong format.

Collapse
 
billy_de_cartel profile image
Billy Okeyo

Ooh okay thanks, I'll look at my templates..