disable pymysql import
This commit is contained in:
parent
4b3959787e
commit
f4c5ba27cc
|
@ -4,13 +4,13 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import celery
|
import celery
|
||||||
import pymysql
|
# import pymysql
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
# from raven import Client
|
# from raven import Client
|
||||||
# from raven.contrib.celery import register_logger_signal, register_signal
|
# from raven.contrib.celery import register_logger_signal, register_signal
|
||||||
|
|
||||||
pymysql.install_as_MySQLdb()
|
# pymysql.install_as_MySQLdb()
|
||||||
|
|
||||||
# set the default Django settings module for the 'celery' program.
|
# set the default Django settings module for the 'celery' program.
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "passbook.core.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "passbook.core.settings")
|
||||||
|
|
Reference in New Issue