1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

split settings config between development and production

This commit is contained in:
Pierre-antoine Comby
2020-01-27 20:49:02 +00:00
parent cbf0f59373
commit a39cb56e0d
8 changed files with 110 additions and 37 deletions

View File

@ -0,0 +1,11 @@
import os
from .base import *
app_stage = os.environ.get('DJANGO_APP_STAGE', 'dev')
if app_stage == 'prod':
from .production import *
else:
from .development import *
from .secrets import *