Commit e8e20106 authored by Evili del Rio's avatar Evili del Rio

Correct environment variable name

parent d879d437
Pipeline #726 failed with stages
in 42 seconds
......@@ -14,7 +14,7 @@
# If DJANGO_DATABASES is not defined we look for alternate definition
# via DJANGO_DATABASE_ENGINE, DJANGO_DATABASE_HOST, DJANGO_DATABASE_NAME,
# DJANGO_DATABASE_USER, and DJANGO_DATABASE_PASSWORD; defaulting to postgres
# environment variables POSTGRES_HOST, POSTGRES_DB, etc.
# environment variables POSTGRES_HOST, POSTGRES_DATABASE, etc.
#
#
......@@ -62,7 +62,7 @@ if os.getenv('DJANGO_DATABASES', None) is None:
'default': {
'ENGINE': os.getenv('DJANGO_DATABASE_ENGINE','django.db.backends.postgresql'),
'HOST': os.getenv('DJANGO_DATABASE_HOST', os.getenv('POSTGRES_HOST', 'postgres')),
'NAME': os.getenv('DJANGO_DATABASE_NAME', os.getenv('POSTGRES_DB', __PROJECT_NAME)),
'NAME': os.getenv('DJANGO_DATABASE_NAME', os.getenv('POSTGRES_DATABASE', __PROJECT_NAME)),
'USER': os.getenv('DJANGO_DATABASE_USER', os.getenv('POSTGRES_USER', __PROJECT_NAME)),
'PASSWORD' : os.getenv('DJANGO_DATABASE_PASSWORD', os.getenv('POSTGRES_PASSWORD', __PROJECT_NAME)),
}
......
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