We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4980d20 + 09ae3f4 commit fa16154Copy full SHA for fa16154
docker-compose.yml
@@ -10,6 +10,8 @@ web:
10
- /usr/src/app
11
- /usr/src/app/static
12
env_file: .env
13
+ environment:
14
+ DEBUG: 'true'
15
command: /usr/local/bin/gunicorn docker_django.wsgi:application -w 2 -b :8000
16
17
nginx:
web/docker_django/settings.py
@@ -23,7 +23,7 @@
23
SECRET_KEY = os.environ['SECRET_KEY']
24
25
# SECURITY WARNING: don't run with debug turned on in production!
26
-DEBUG = True
+DEBUG = True if os.getenv('DEBUG') == 'true' else False
27
28
ALLOWED_HOSTS = []
29
0 commit comments