Skip to content
Snippets Groups Projects
Commit ff61756d authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

Merge branch 'feature-db-host' into 'master'

Allow configuring db host in production

Closes #94

See merge request !54
parents 13ee619b 1c8e6c01
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ CSRF_COOKIE_SECURE = True ...@@ -25,7 +25,7 @@ CSRF_COOKIE_SECURE = True
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost', 'HOST': getattr(secrets, "DB_HOST", "localhost"),
'NAME': secrets.DB_NAME, 'NAME': secrets.DB_NAME,
'USER': secrets.DB_USER, 'USER': secrets.DB_USER,
'PASSWORD': secrets.DB_PASSWORD, 'PASSWORD': secrets.DB_PASSWORD,
......
...@@ -6,4 +6,7 @@ DB_NAME = '' ...@@ -6,4 +6,7 @@ DB_NAME = ''
DB_USER = '' DB_USER = ''
DB_PASSWORD = '' DB_PASSWORD = ''
\ No newline at end of file
# Optional, if not set, localhost is assumed
# DB_HOST = ''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment