]> git.parisson.com Git - teleforma.git/commitdiff
add env
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Feb 2019 00:46:49 +0000 (01:46 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Feb 2019 00:46:49 +0000 (01:46 +0100)
app/settings.py

index becae731136ffbcd87df7bc52451306d4f094362..dcfdc19e2ca5bbdf4bcb244099f0454866831fa6 100644 (file)
@@ -8,6 +8,10 @@ import environ
 
 sys.dont_write_bytecode = True
 
+env = environ.Env(DEBUG=(bool, False),
+                  CELERY_ALWAYS_EAGER=(bool, False),
+                  )
+
 # Django settings for server project.
 DEBUG = env('DEBUG')  # False if not in os.environ
 TEMPLATE_DEBUG = DEBUG