From 633d788cd6685040e9e3cf03c90c9e0d9db1e048 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 9 Jun 2024 10:55:48 +0100 Subject: [PATCH] Get debug from env --- yamdl_playground/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamdl_playground/settings.py b/yamdl_playground/settings.py index 64bf304..0b8db05 100644 --- a/yamdl_playground/settings.py +++ b/yamdl_playground/settings.py @@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-13rey)pheg9^%jtworn_&3wl&$-l%40uza0!ijva+l$n5umuz3' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.environ.get("DEBUG", "true").lower() == "true" ALLOWED_HOSTS = ["*"]