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

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

    something here helped me:

    I had a static css file link (and honestly, it had just a few lines), once I removed the link, and inserted into a tag in my main.html, it worked just fine: with DEBUG=False

    :D

提交回复
热议问题