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

前端 未结 6 911
情歌与酒
情歌与酒 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:26

    What you should be doing here is this:

    • Open up your Heroku logs by running $ heroku logs --tail in one terminal window.
    • In another terminal window run $ heroku ps:restart to restart your dynos.

    Watch the logs, and see the actual traceback. This will tell you exactly what's going on. Based on your configuration it could be a number of issues.

提交回复
热议问题