Print a message if DEBUG is enabled
This commit is contained in:
parent
2ffb5c2450
commit
4d687b0d40
1 changed files with 2 additions and 0 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue