diff --git a/docker-compose.yml b/docker-compose.yml index 8360d7e..35238e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ web: - /usr/src/app - /usr/src/app/static env_file: .env + environment: + DEBUG: 'true' command: /usr/local/bin/gunicorn docker_django.wsgi:application -w 2 -b :8000 nginx: diff --git a/web/docker_django/settings.py b/web/docker_django/settings.py index c851a62..bd9a22a 100644 --- a/web/docker_django/settings.py +++ b/web/docker_django/settings.py @@ -23,7 +23,7 @@ SECRET_KEY = os.environ['SECRET_KEY'] # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = True if os.getenv('DEBUG') == 'true' else False ALLOWED_HOSTS = []