From 8be8b44584fac0e0d6d336ca00824d70f0579b23 Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Mon, 16 Mar 2026 21:03:28 +0000 Subject: [PATCH] also variablize DEBUG --- django_code/django_code/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django_code/django_code/settings.py b/django_code/django_code/settings.py index 20d7239..c45e312 100644 --- a/django_code/django_code/settings.py +++ b/django_code/django_code/settings.py @@ -23,9 +23,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-71%)_#e#o9-dl2o^6mfud-*rw+4+8vy-nd*bzeier&(34ap-p9' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.getenv("DEBUG") -#ALLOWED_HOSTS = ['django-testing.tryton.geeraert.eu','redirect.tryton.geeraert.eu'] ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS").split(",") # Application definition