From 74b6e829368b608ae871154d48dae295d2bad383 Mon Sep 17 00:00:00 2001 From: relikd Date: Tue, 30 May 2023 17:39:15 +0200 Subject: [PATCH] fix: env var DEBUG --- config/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/settings.py b/config/settings.py index a4697a5..4739f31 100644 --- a/config/settings.py +++ b/config/settings.py @@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'insecure-+3@1h+@wz%6m*dpx0e') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = os.environ.get('DEBUG', True) +DEBUG = os.environ.get('DEBUG', 'yes').lower() not in ['false', 'no', '0'] ALLOWED_HOSTS = []