From f8312a0af146c2f0f0aeb936d4da76f22fa8b0b4 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Wed, 19 Jun 2019 18:00:15 +0200 Subject: [PATCH] Change psycopg2 version and change postgresql engine. --- app/Pipfile | 2 +- app/bundesdata_app/settings.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Pipfile b/app/Pipfile index be61a62..0318a4d 100755 --- a/app/Pipfile +++ b/app/Pipfile @@ -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" diff --git a/app/bundesdata_app/settings.py b/app/bundesdata_app/settings.py index 039b935..7874dac 100755 --- a/app/bundesdata_app/settings.py +++ b/app/bundesdata_app/settings.py @@ -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',