2
0
Fork 0

Fix condition for DEBUG setting

This commit is contained in:
Luca 2022-04-13 19:42:44 +02:00
parent 943130fddd
commit 664e1617b0
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = getenv('SECRET_KEY', 'django-insecure-pdgzgd_!w&&cfqc%r&!v_^6pgf!sza=2wim67()!(kaf7_6-5)')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = getenv('ENVIRONMENT', 'development') == 'production'
DEBUG = getenv('ENVIRONMENT', 'development') != 'production'
ALLOWED_HOSTS = getenv('ALLOWED_HOSTS', '').split(',')