Use POSTGRES_* constants for uniformity
This commit is contained in:
parent
e798679c6c
commit
8f2f8b86e2
1 changed files with 3 additions and 3 deletions
|
@ -7,9 +7,9 @@ ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', "").split(",")
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': os.environ.get('SQL_ENGINE', 'django.db.backends.postgresql'),
|
||||
'NAME': os.environ.get('SQL_DATABASE', 'app'),
|
||||
'USER': os.environ.get('SQL_USER', 'app'),
|
||||
'PASSWORD': os.environ.get('SQL_PASSWORD', ''),
|
||||
'NAME': os.environ.get('POSTGRES_DB', 'app'),
|
||||
'USER': os.environ.get('POSTGRES_USER', 'app'),
|
||||
'PASSWORD': os.environ.get('POSTGRES_PASSWORD', ''),
|
||||
'HOST': os.environ.get('SQL_HOST', 'localhost'),
|
||||
'PORT': os.environ.get('SQL_PORT', ''),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue