mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Remove redundant ; and import local settings
This commit is contained in:
parent
f89d91e524
commit
62bfd9a044
@ -30,12 +30,17 @@ read_env()
|
|||||||
app_stage = os.environ.get('DJANGO_APP_STAGE', 'dev')
|
app_stage = os.environ.get('DJANGO_APP_STAGE', 'dev')
|
||||||
if app_stage == 'prod':
|
if app_stage == 'prod':
|
||||||
from .production import *
|
from .production import *
|
||||||
DATABASES["default"]["PASSWORD"] = os.environ.get('DJANGO_DB_PASSWORD','CHANGE_ME_IN_ENV_SETTINGS');
|
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');
|
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY','CHANGE_ME_IN_ENV_SETTINGS')
|
||||||
ALLOWED_HOSTS.append(os.environ.get('ALLOWED_HOSTS','localhost'));
|
ALLOWED_HOSTS.append(os.environ.get('ALLOWED_HOSTS','localhost'))
|
||||||
else:
|
else:
|
||||||
from .development import *
|
from .development import *
|
||||||
|
|
||||||
|
try:
|
||||||
|
from .secrets import *
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
# env variables set at the of in /env/bin/activate
|
# env variables set at the of in /env/bin/activate
|
||||||
# don't forget to unset in deactivate !
|
# don't forget to unset in deactivate !
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user