nk20/note_kfet/settings/__init__.py

17 lines
347 B
Python
Raw Normal View History

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!")