custom_settings: extraire PLATEFORM du scope local

This commit is contained in:
Benjamin Dauvergne 2019-05-09 11:59:45 +02:00
parent 8c68d9ca49
commit 330b869830
1 changed files with 1 additions and 1 deletions

View File

@ -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'