From 3e0cce33d5ecbce367919426d00080b35ca07b5e Mon Sep 17 00:00:00 2001 From: Matias Vallejos Date: Tue, 30 Jan 2024 11:47:33 -0300 Subject: [PATCH] Improperly DEBUG fixed --- app/todo_project/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/todo_project/settings.py b/app/todo_project/settings.py index feb1deb..3dd5564 100644 --- a/app/todo_project/settings.py +++ b/app/todo_project/settings.py @@ -22,7 +22,7 @@ SECRET_KEY = os.environ.get("DJ_SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = os.environ.get("DEBUG", True) +DEBUG = 'RENDER' not in os.environ ALLOWED_HOSTS = ["*", "localhost", "127.0.0.1", ".vercel.app"]