From: Guillaume Pellerin Date: Wed, 13 Apr 2016 09:47:41 +0000 (+0200) Subject: use env for debug variable X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6bde4261f058312b336e3751433f7fbc0981594e;p=mezzo.git use env for debug variable --- diff --git a/app/sandbox/local_settings.py b/app/sandbox/local_settings.py index 030940c1..5c495329 100644 --- a/app/sandbox/local_settings.py +++ b/app/sandbox/local_settings.py @@ -1,7 +1,7 @@ import os from django.utils.translation import ugettext_lazy as _ -DEBUG = False +DEBUG = True if os.environ.get('DEBUG', 'True') else False # Make these unique, and don't share it with anybody. SECRET_KEY = "+3b01&_6_m@@yb4f06$s0zno8vkybh81nbuj_q(xzk+xeih1+s" diff --git a/conf/dev.yml b/conf/dev.yml index ba774cec..ffd7fd27 100644 --- a/conf/dev.yml +++ b/conf/dev.yml @@ -25,3 +25,5 @@ app: - ./app/:/srv/app ports: - "9010:8000" + environment: + - DEBUG='True' diff --git a/docker-compose.yml b/docker-compose.yml index bb0cbe04..21b21924 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -60,6 +60,8 @@ app: links: - db - pgdb + environment: + - DEBUG=False nginx: image: nginx