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

前端 未结 2 1775
故里飘歌
故里飘歌 2021-01-13 00:52

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

相关标签:
2条回答
  • 2021-01-13 00:57

    did you try

    python manage.py collecstatic
    

    ?

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

    0 讨论(0)
  • 2021-01-13 00:59

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

    ALLOWED_HOSTS = [".herokuapp.com"]
    
    0 讨论(0)
提交回复
热议问题