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
In case anyone is using .env file or loads environmental variables, I used the below is effectively load the DEBUG env variable in the right type:
import os APP_DEGUB_MODE = os.getenv('APP_DEBUG', False) DEBUG = eval(APP_DEGUB_MODE) if isinstance(APP_DEGUB_MODE, str) else APP_DEGUB_MODE