settings: Add option to set remote postgres port.

This commit is contained in:
Vishnu KS
2019-12-12 15:18:49 +05:30
committed by Tim Abbott
parent f3c224058f
commit 8b57e39c7e
4 changed files with 6 additions and 1 deletions

View File

@@ -282,6 +282,7 @@ if DEVELOPMENT:
elif REMOTE_POSTGRES_HOST != '':
DATABASES['default'].update({
'HOST': REMOTE_POSTGRES_HOST,
'PORT': REMOTE_POSTGRES_PORT
})
if get_secret("postgres_password") is not None:
DATABASES['default'].update({