custom_settings: extraire PLATEFORM du scope local
This commit is contained in:
parent
8c68d9ca49
commit
330b869830
|
@ -2,7 +2,7 @@
|
||||||
from authentic2.settings import INSTALLED_APPS, CACHES
|
from authentic2.settings import INSTALLED_APPS, CACHES
|
||||||
import os
|
import os
|
||||||
|
|
||||||
PLATFORM = os.environ.get('PLATFORM')
|
PLATFORM = vars().get('PLATFORM')
|
||||||
if PLATFORM not in ['dev', 'test', 'prod']:
|
if PLATFORM not in ['dev', 'test', 'prod']:
|
||||||
PLATFORM = 'prod'
|
PLATFORM = 'prod'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue