Suziemac Tani
Suziemac Tani

Reputation: 455

Why does setting debug to false in django settings stop Heroku app from loading in development and production?

In my settings i have set DEBUG=False but this instead generated a 500 Error in both dev and production. so i looked around and came across this (Setting DEBUG = False causes 500 Error) and tried it out.

ALLOWED_HOSTS = ['www.heroku.com']

But this did not work, what am i not doing right? Am hosting with heroku

Upvotes: 6

Views: 1660

Answers (2)

Edison Urquijo
Edison Urquijo

Reputation: 169

did you try

python manage.py collecstatic

?

you should review files directory becuase in prodhuction static files directory changes. heroku uses whitenouse

Upvotes: 1

Alasdair
Alasdair

Reputation: 308939

Your app is not hosted on www.heroku.com. Instead, try

ALLOWED_HOSTS = [".herokuapp.com"]

Upvotes: 16

Related Questions