Skip to content

Commit 5e4d1a5

Browse files
committed
adding db host to settings.py
1 parent 68ef5bc commit 5e4d1a5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bil_site/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
sys.exit(1)
2929

3030
essential_site_cfg_keys = [
31-
'SECRET_KEY', 'DEBUG', 'IMG_DATA_HOST',
31+
'SECRET_KEY', 'DEBUG', 'IMG_DATA_HOST', 'DB_HOST',
3232
'FAKE_STORAGE_AREA', 'DATABASE', 'STAGING_AREA_ROOT'
3333
]
3434

@@ -137,7 +137,7 @@
137137
'NAME': config['Security']['DATABASE_NAME'],
138138
'USER': config['Security']['DATABASE_USER'],
139139
'PASSWORD': DATABASE_PASSWORD,
140-
'HOST': IMG_DATA_HOST,
140+
'HOST': config['Security']['DB_HOST'],
141141
'PORT': '',
142142
}
143143
}

example.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ FAKE_STORAGE_AREA = no
88
DATABASE = postgres
99
# Change DATABASE_PASSWORD if using 'DATABASE = postgres'!!!
1010
DATABASE_PASSWORD = top_secret_database_password
11+
DB_HOST = localhost
1112
STAGING_AREA_ROOT = /bil/lz
1213
IMG_DATA_HOST = dxc.psc.edu
1314
EMAIL_USER = '[email protected]'

0 commit comments

Comments
 (0)