From 330b86983064ded9461bbd006b7fd62f8a660790 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 9 May 2019 11:59:45 +0200 Subject: [PATCH] custom_settings: extraire PLATEFORM du scope local --- src/authentic2_cut/custom_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_cut/custom_settings.py b/src/authentic2_cut/custom_settings.py index 44baa28..0ef2908 100644 --- a/src/authentic2_cut/custom_settings.py +++ b/src/authentic2_cut/custom_settings.py @@ -2,7 +2,7 @@ from authentic2.settings import INSTALLED_APPS, CACHES import os -PLATFORM = os.environ.get('PLATFORM') +PLATFORM = vars().get('PLATFORM') if PLATFORM not in ['dev', 'test', 'prod']: PLATFORM = 'prod'