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

前端 未结 2 1774
故里飘歌
故里飘歌 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:59

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

    ALLOWED_HOSTS = [".herokuapp.com"]
    

提交回复
热议问题