From 9b762e6c570d9df68c42cb0b82a95c3cef322d9c Mon Sep 17 00:00:00 2001 From: phzhik Date: Sat, 19 Aug 2023 20:12:28 +0400 Subject: [PATCH] * Disabled DEBUG mode --- poizonstore/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poizonstore/settings.py b/poizonstore/settings.py index 8a60c8f..f0a042c 100644 --- a/poizonstore/settings.py +++ b/poizonstore/settings.py @@ -26,7 +26,7 @@ CDEK_CLIENT_ID = '***REMOVED***' CDEK_CLIENT_SECRET = '***REMOVED***' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = bool(int(os.environ.get("DJANGO_DEBUG") or 0)) DISABLE_PERMISSIONS = False DISABLE_CORS = True