Commit b16f0451 authored by Mathias Stelzer's avatar Mathias Stelzer

fix postgres settings

parent cbb1063b
Pipeline #829 failed with stages
in 17 minutes and 23 seconds
......@@ -7,16 +7,16 @@ DATABASES['default']['NAME'] = 'django-model-permissions'
POSTGRES_NAME = os.environ.get('POSTGRES_DB', None)
if POSTGRES_NAME is not None:
DATABASES['NAME'] = POSTGRES_NAME
DATABASES['default']['NAME'] = POSTGRES_NAME
POSTGRES_USER = os.environ.get('POSTGRES_USER', None)
if POSTGRES_USER is not None:
DATABASES['USER'] = POSTGRES_USER
DATABASES['default']['USER'] = POSTGRES_USER
POSTGRES_HOST = os.environ.get('POSTGRES_HOST', None)
if POSTGRES_HOST is not None:
DATABASES['HOST'] = POSTGRES_HOST
DATABASES['default']['HOST'] = POSTGRES_HOST
POSTGRES_PASSWORD = os.environ.get('POSTGRES_PASSWORD', None)
if POSTGRES_PASSWORD is not None:
DATABASES['PASSWORD'] = POSTGRES_PASSWORD
DATABASES['default']['PASSWORD'] = POSTGRES_PASSWORD
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment