Does your django settings.py file even look in the environment?
By default, it does not care about everything that you installed in the environment (via "config: set"). If you are filling the environment into a logical one, make sure that you have done it correctly. bool ('False') is still true.
The easiest way is to simply determine if an environment variable exists, so you donβt have to worry about the type or specific configuration formats.
DEBUG = os.environ.get('DEBUG', False)
To disable debug, remove the variable from the environment instead of trying to type ... it just seems more reliable and reliable. config:unset DEBUG
source share