From 05634b9def2b56af8c627d0eeaa0e43f762fd46c Mon Sep 17 00:00:00 2001 From: n8creator Date: Wed, 13 Dec 2023 18:18:33 +0300 Subject: [PATCH] Fixed DEBUG setting from `string` to `bool` type --- task_manager/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/task_manager/settings.py b/task_manager/settings.py index 4567dfb..ee3705e 100644 --- a/task_manager/settings.py +++ b/task_manager/settings.py @@ -30,7 +30,9 @@ SECRET_KEY = os.getenv("SECRET_KEY", "secret_key") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = os.getenv("DEBUG", "False") +DEBUG = os.getenv("DEBUG", "False") == "True" + +print("DEBUG:", type(DEBUG), DEBUG, SECRET_KEY) ALLOWED_HOSTS = [ "127.0.0.1",