Print a message if DEBUG is enabled

This commit is contained in:
Andrey Golovizin 2020-03-10 22:05:57 +01:00
parent 2ffb5c2450
commit 4d687b0d40

View file

@ -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"]