From 664e1617b059c196b951646bbf047b6213271266 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 13 Apr 2022 19:42:44 +0200 Subject: [PATCH] Fix condition for DEBUG setting --- shiftregister/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/settings.py b/shiftregister/settings.py index 02436bd..788abcc 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -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(',')