debug false

This commit is contained in:
Egor Matveev 2022-02-28 21:34:28 +03:00
parent c8882387e0
commit 68029a4048
2 changed files with 2 additions and 3 deletions

View File

@ -29,10 +29,8 @@ HOST = os.getenv("HOST", "77.246.159.65")
SECRET_KEY = "-w#*mn6*fa8a=(-c0@klx&$vl%hpiy&l(u*3%0a#2)wdt##(z2"
# SECURITY WARNING: don't run with debug turned on in production!
DEPLOY = False
DEBUG = not DEPLOY
DEBUG = os.getenv('debug', 'true') == 'true'
SECURE_SSL_REDIRECT = DEPLOY
ALLOWED_HOSTS = ["*"]

View File

@ -29,6 +29,7 @@ services:
environment:
PORT: $PORT
HOST: $HOST
debug: false
command: ./manage.py runserver 0.0.0.0:$PORT --noreload
ports:
- "${PORT}:${PORT}"