From: Guillaume Pellerin Date: Tue, 5 Feb 2019 00:46:49 +0000 (+0100) Subject: add env X-Git-Tag: 2.1~66^2^2~109 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=566b20cd671c5a8b8ec68c2851fa5a03e714788c;p=teleforma.git add env --- diff --git a/app/settings.py b/app/settings.py index becae731..dcfdc19e 100644 --- a/app/settings.py +++ b/app/settings.py @@ -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