2020-01-27 20:49:02 +00:00
|
|
|
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 *
|
2020-01-28 09:28:29 +00:00
|
|
|
# Load password for database and SECRET_KEY
|
|
|
|
|
2020-01-28 09:16:08 +00:00
|
|
|
try:
|
|
|
|
from .secrets import *
|
2020-01-28 09:28:29 +00:00
|
|
|
except ImportError:
|
2020-01-28 09:16:08 +00:00
|
|
|
from .secrets_example.py import *
|
2020-01-28 09:28:29 +00:00
|
|
|
print("Use default secrets!")
|