Why does setting debugging to false in django settings stop Heroku application from loading during development and production?

In my settings, I set DEBUG=False , but instead generated a 500 error in both dev and production. so I looked around and came across this ( Setting DEBUG = False causes a 500 error) and tried.

 ALLOWED_HOSTS = ['www.heroku.com'] 

But it didn’t work, what am I not doing right? Hosting with gerok

+6
django heroku
source share
2 answers

Your application is not hosted on www.heroku.com. Try instead

 ALLOWED_HOSTS = [".herokuapp.com"] 
+16
source share

You tried

 python manage.py collecstatic 

?

you should browse the file directory because the change directories have a directory of static prodhuction files. heroku uses whitenouse

+1
source share

All Articles