django DEBUG=False still runs in debug mode

前端 未结 9 666
再見小時候
再見小時候 2021-01-12 21:45

I\'m having issues setting my DEBUG = False on my deployed server (on heroku).

I don\'t believe I\'ve seen this before, but setting debug to false is not

9条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 22:14

    As a note for others: I had the same problem; I configured my production website on a VM with gunicorn and nginx, following the tutorial for ubuntu 16.04 from the digital ocean documentation.

    I wasn't able to turn off the debug mode, even when restarting the nginx systemd's service: the solution was to restart also the gunicorn service:

    # systemctl restart nginx gunicorn
    

提交回复
热议问题