From 362386030230a768c9f9d90e36a62d3cdb9d10c8 Mon Sep 17 00:00:00 2001 From: Walter Date: Fri, 21 Feb 2025 02:39:03 +0100 Subject: [PATCH] fix dumbest bug from django guide (i will find them) --- app/settings/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/settings/settings.py b/app/settings/settings.py index e34a4e1..14088a3 100644 --- a/app/settings/settings.py +++ b/app/settings/settings.py @@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = bool(os.environ.get("DJANGO_DEBUG", default=0)) or platform == "win32" +DEBUG = bool(int(os.environ.get("DJANGO_DEBUG", default=0))) or platform == "win32" def load_insecure_key(): print("Warning: Insecure SECRET_KEY loaded")