move pymysql.install_as_MySQLdb() to newsblur.__init__.py in case there is an issue with MySQLdb

This commit is contained in:
Jonathan Math 2020-07-03 02:25:42 -04:00
parent 111a4e9961
commit 6ae0f1ff70
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +0,0 @@
import pymysql
pymysql.install_as_MySQLdb()

View file

@ -4,4 +4,8 @@ from __future__ import absolute_import, unicode_literals
# Django starts so that shared_task will use this app.
from .celeryapp import app as celery_app
__all__ = ['celery_app']
__all__ = ['celery_app']
import pymysql
pymysql.install_as_MySQLdb()