Open
Description
Hi,
I just noticed that, with the current setup, debug mode is enabled in production. More specifically:
should probably be something like DEBUG = True if os.getenv('DEBUG') == 'True' else False
. I use this in my own setup and I prefer the default to be False
to avoid accidentally enabling debug mode (e.g. if the setting is forgotten in .env
).
I know this is only an example, but I think it's better to show people best practices :-)