Skip to content
Snippets Groups Projects
Commit 54fa35f0 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-725: fixed parsing of DEBUG envvar

parent 6d4b4af4
No related branches found
No related tags found
1 merge request!414Resolve TMSS-725
...@@ -71,7 +71,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) ...@@ -71,7 +71,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
SECRET_KEY = os.getenv('SECRET_KEY', '-&$!kx$_0)u1x#zk9w^^81hfssaover2(8wdq_8n8n3u(8=-9n') # todo: set something new here for production !!! SECRET_KEY = os.getenv('SECRET_KEY', '-&$!kx$_0)u1x#zk9w^^81hfssaover2(8wdq_8n8n3u(8=-9n') # todo: set something new here for production !!!
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = bool(int(os.getenv('DEBUG', True))) from distutils.util import strtobool
DEBUG = strtobool(os.getenv('DEBUG', 'True'))
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOSTS') else [] ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOSTS') else []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment