From b7ac4f1dd2416a576b9b7b9532932e952d080c08 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 21 Feb 2019 16:30:56 +0100 Subject: [PATCH] add psycopg2 as dependency --- passbook/core/celery.py | 3 --- passbook/core/requirements.txt | 2 +- passbook/core/settings.py | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/passbook/core/celery.py b/passbook/core/celery.py index 652ad0304..edf1c13a4 100644 --- a/passbook/core/celery.py +++ b/passbook/core/celery.py @@ -4,14 +4,11 @@ import logging import os import celery -# import pymysql from django.conf import settings # from raven import Client # from raven.contrib.celery import register_logger_signal, register_signal -# pymysql.install_as_MySQLdb() - # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "passbook.core.settings") diff --git a/passbook/core/requirements.txt b/passbook/core/requirements.txt index 5f02386d3..282556637 100644 --- a/passbook/core/requirements.txt +++ b/passbook/core/requirements.txt @@ -7,6 +7,6 @@ markdown colorlog celery redis<3.0 -pymysql +psycopg2 idna<2.8,>=2.5 cherrypy diff --git a/passbook/core/settings.py b/passbook/core/settings.py index a3f998f45..b7bb10876 100644 --- a/passbook/core/settings.py +++ b/passbook/core/settings.py @@ -129,9 +129,6 @@ WSGI_APPLICATION = 'passbook.core.wsgi.application' DATABASES = {} for db_alias, db_config in CONFIG.get('databases').items(): - if 'mysql' in db_config.get('engine'): - import pymysql - pymysql.install_as_MySQLdb() DATABASES[db_alias] = { 'ENGINE': db_config.get('engine'), 'HOST': db_config.get('host'),