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
When you use the module decouple (pip install python-decouple) make sure you cast DEBUG to a bool. Thus settings.py should have the following line:
decouple
pip install python-decouple
from decouple import config DEBUG = config('DEBUG', default=False, cast=bool)
where in the .env file
.env
DEBUG = False # or True