From 68029a404816330df06f87d3cb94b7d7e57cd685 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Mon, 28 Feb 2022 21:34:28 +0300 Subject: [PATCH] debug false --- Sprint/settings.py | 4 +--- docker-compose.yaml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Sprint/settings.py b/Sprint/settings.py index 3f02127..17c4b24 100644 --- a/Sprint/settings.py +++ b/Sprint/settings.py @@ -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 = ["*"] diff --git a/docker-compose.yaml b/docker-compose.yaml index ed9d4f7..aa29c90 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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}"