Fix condition for DEBUG setting

pull/1/head
Luca 3 years ago
parent 943130fddd
commit 664e1617b0

@ -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(',')

Loading…
Cancel
Save