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

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

    Try making migrations with:

    heroku run python manage.py makemigrations

    heroku run python manage.py migrate

    I had the same issue, but this solved it.

提交回复
热议问题