Why would django fail with server 500 only when Debug=False AND db is set to production database on Heroku?

前端 未结 6 907
情歌与酒
情歌与酒 2020-12-11 18:28

When we run $ python manage.py runserver --settings=project.settings.local there are 4 different possible combinations:

  1. Debug=True && DB=l
6条回答
  •  天涯浪人
    2020-12-11 19:12

    The solution for me was to run python manage.py collectstatic.

    If you run $ heroku logs --tail inside terminal before doing this, the log will tell you what static files cannot be found (404).

提交回复
热议问题