I\'m having issues setting my DEBUG = False on my deployed server (on heroku).
DEBUG = False
I don\'t believe I\'ve seen this before, but setting debug to false is not
I also experienced this problem as I was loading the debug setting from an environment variable DEBUG = os.environ.get('DEBUG_MODE')).
DEBUG = os.environ.get('DEBUG_MODE'))
This set the DEBUG value as a string, not a boolean.
To fix this, I hardcoded DEBUG = False in my prod settings file.