2017-12-01 03:39:21 +00:00
|
|
|
from .base import *
|
2017-11-24 14:09:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Database
|
2020-01-19 16:49:45 +00:00
|
|
|
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
2017-11-24 14:09:43 +00:00
|
|
|
|
2021-01-05 02:06:11 +00:00
|
|
|
# Load settings from env file / variables with fallback defaults to support current psql deployment
|
2017-11-24 14:09:43 +00:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
2021-01-05 02:06:11 +00:00
|
|
|
'ENGINE': os.getenv('DB_ENGINE') or 'django.db.backends.postgresql_psycopg2',
|
|
|
|
'NAME': os.getenv('DB_NAME') or 'postgres',
|
|
|
|
'USER': os.getenv('DB_USER') or 'postgres',
|
|
|
|
'PASSWORD': os.environ.get('DB_PASSWORD') or os.environ.get('POSTGRES_PASSWORD'),
|
|
|
|
'HOST': os.getenv('DB_HOST') or 'db',
|
|
|
|
'PORT': os.getenv('DB_PORT') or 5432,
|
2017-11-24 14:09:43 +00:00
|
|
|
}
|
|
|
|
}
|