1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-03-14 01:37:32 +00:00
nk20/note_kfet/settings/__init__.py
Pierre-antoine Comby 14486074b4 the server is running
2020-01-28 19:56:04 +00:00

18 lines
451 B
Python

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 *
# env variables set at the of in /env/bin/activate
# don't forget to unset in deactivate !
DATABASES["default"]["PASSWORD"] = os.environ.get('DJANGO_DB_PASSWORD','CHANGE_ME_IN_ENV_SETTINGS');
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY','CHANGE_ME_IN_ENV_SETTINGS');