split settings config between development and production
This commit is contained in:
parent
cbf0f59373
commit
a39cb56e0d
8 changed files with 110 additions and 37 deletions
11
note_kfet/settings/__init__.py
Normal file
11
note_kfet/settings/__init__.py
Normal 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 *
|
||||
Loading…
Add table
Add a link
Reference in a new issue