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

前端 未结 5 1185
深忆病人
深忆病人 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:45

    You need to provide ALLOWED_HOSTS

    Debug = False
    ALLOWED_HOSTS = [".herokuapp.com"]
    

    And Heroku you should use PostgreSQL

    https://github.com/kennethreitz/dj-database-url

提交回复
热议问题