removed deprecated psycopg2
This commit is contained in:
parent
7732aa7646
commit
56c9edd328
@ -12,7 +12,7 @@ SECRET_KEY=
|
||||
TIMEZONE=Europe/Berlin
|
||||
|
||||
# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
|
||||
DB_ENGINE=django.db.backends.postgresql_psycopg2
|
||||
DB_ENGINE=django.db.backends.postgresql
|
||||
POSTGRES_HOST=db_recipes
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_USER=djangodb
|
||||
|
@ -243,7 +243,7 @@ def history(request):
|
||||
|
||||
@group_required('admin')
|
||||
def system(request):
|
||||
postgres = False if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql_psycopg2' else True
|
||||
postgres = False if (settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql_psycopg2' or settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql') else True
|
||||
|
||||
secret_key = False if os.getenv('SECRET_KEY') else True
|
||||
|
||||
|
@ -14,7 +14,6 @@ gunicorn==20.0.4
|
||||
lxml==4.6.2
|
||||
Markdown==3.3.3
|
||||
Pillow==8.0.1
|
||||
psycopg2-binary==2.8.6
|
||||
python-dotenv==0.15.0
|
||||
requests==2.25.0
|
||||
simplejson==3.17.2
|
||||
|
Loading…
Reference in New Issue
Block a user