From 4d687b0d40683d1475f2b32e4cb39df261c20715 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Tue, 10 Mar 2020 22:05:57 +0100 Subject: [PATCH] Print a message if DEBUG is enabled --- src/strojnadzor/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/strojnadzor/settings.py b/src/strojnadzor/settings.py index b8b2cdf..5f5a7cc 100644 --- a/src/strojnadzor/settings.py +++ b/src/strojnadzor/settings.py @@ -40,6 +40,8 @@ SECRET_KEY = "15-d*6bl(@+jfo92@=67vi1ohx%3e&^l98*bo*v$$+ms%!l(!!" # SECURITY WARNING: don't run with debug turned on in production! DEBUG = bool(os.getenv("STROJNADZOR_DEBUG")) +if DEBUG: + print("CAUTION: DEBUG =", DEBUG) ALLOWED_HOSTS = [".golovizin.ru", ".xn--b1abndboscb.xn--p1ai", "localhost"]