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
The root cause of issue - False translated to 'False' string not bool.
'False'
Used next solution (settings.py):
DEBUG = os.getenv('DEBUG', False) == 'True'
i.e.: in this case DEBUG will set to (bool) True, only if the environment variable is explicitly set to True or 'True'.
DEBUG
True
'True'
Good luck configuring! :)