Heroku server error (500) when Debug = False , whitenoise could not find style.css

前端 未结 5 1184
深忆病人
深忆病人 2020-12-20 06:13

I am getting a Server Error(500) when debug is set to false, But the site works fine when debug=True

This is the Heroku log: [EDIT:NEW LOG FILE AFTER MAKING

5条回答
  •  臣服心动
    2020-12-20 06:41

    While turning off Debugging. You need to provide ALLOWED_HOSTS in a list. Please check Django documentation for more..

    Debug = False
    ALLOWED_HOSTS = ['xyz.com']
    

提交回复
热议问题