pep8 and postgres backend

This commit is contained in:
John Anderson 2019-04-15 04:07:52 -04:00
parent aae36cdce2
commit 850997b09c
2 changed files with 5 additions and 2 deletions

View File

@ -118,6 +118,9 @@ else:
]
# Database
if PROMETHEUS_ENABLE:
configuration.DATABASE.update({'ENGINE': 'django_prometheus.db.backends.postgresql'})
else:
configuration.DATABASE.update({'ENGINE': 'django.db.backends.postgresql'})
DATABASES = {
'default': configuration.DATABASE,