]> git.parisson.com Git - mezzo.git/commitdiff
use env for debug variable
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 13 Apr 2016 09:47:41 +0000 (11:47 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 13 Apr 2016 09:47:41 +0000 (11:47 +0200)
app/sandbox/local_settings.py
conf/dev.yml
docker-compose.yml

index 030940c180b13c24a9345756bea5acba3a86df0f..5c4953295582c6b6107480a60ce457af8ec7e71b 100644 (file)
@@ -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"
index ba774ceca0151719cd664bb66b79654abcc4dfe4..ffd7fd277ab372c7e112b4ba695f69eb4e1a98a8 100644 (file)
@@ -25,3 +25,5 @@ app:
     - ./app/:/srv/app
   ports:
     - "9010:8000"
+  environment:
+    - DEBUG='True'
index bb0cbe04e4e3391bd62e25ed05bb2af8ae07cb75..21b2192443f500f4a45a30bc095257b01f91e90a 100644 (file)
@@ -60,6 +60,8 @@ app:
   links:
     - db
     - pgdb
+  environment:
+   - DEBUG=False
 
 nginx:
   image: nginx