mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
the server is running
This commit is contained in:
parent
62c7e886e9
commit
14486074b4
@ -7,10 +7,11 @@ if app_stage == 'prod':
|
|||||||
from .production import *
|
from .production import *
|
||||||
else:
|
else:
|
||||||
from .development import *
|
from .development import *
|
||||||
# Load password for database and SECRET_KEY
|
|
||||||
|
|
||||||
try:
|
# env variables set at the of in /env/bin/activate
|
||||||
from .secrets import *
|
# don't forget to unset in deactivate !
|
||||||
except ImportError:
|
|
||||||
from .secrets_example.py import *
|
DATABASES["default"]["PASSWORD"] = os.environ.get('DJANGO_DB_PASSWORD','CHANGE_ME_IN_ENV_SETTINGS');
|
||||||
print("Use default secrets!")
|
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY','CHANGE_ME_IN_ENV_SETTINGS');
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': 'note_db',
|
'NAME': 'note_db',
|
||||||
'USER': 'note',
|
'USER': 'note',
|
||||||
'PASSWORD': 'update_in_secrets.py',
|
'PASSWORD': 'update_in_env_variable',
|
||||||
'HOST': '127.0.0.1',
|
'HOST': '127.0.0.1',
|
||||||
'PORT': '',
|
'PORT': '',
|
||||||
}
|
}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
DATABASES['default']['PASSWORD'] ='CHANGE_ME'
|
|
||||||
SECRET_KEY = 'CHANGE_ME'
|
|
Loading…
Reference in New Issue
Block a user