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}"