Change psycopg2 version and change postgresql engine.

This commit is contained in:
Stephan Porada 2019-06-19 18:00:15 +02:00
parent 8a792a17a6
commit f8312a0af1
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ name = "pypi"
[packages]
django= "==2.1.4"
psycopg2= "==2.7.6.1"
psycopg2= "==2.8.3"
gunicorn= "==19.9.0"
lxml= "==4.2.5"
tqdm= "==4.28.1"

View File

@ -107,8 +107,8 @@ WSGI_APPLICATION = 'bundesdata_app.wsgi.application'
# be foudn here: https://stackoverflow.com/a/42077576
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'databaseName',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': get_secret("DB_NAME"),
'USER': get_secret("DB_USER"),
'PASSWORD': get_secret("DB_PASSWORD"),
'HOST': 'db',