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
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