mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 21:58:11 +08:00
Fixes import problems in python 2.7
This commit is contained in:
@@ -71,5 +71,5 @@ def get_broker(list_key=Conf.Q_LIST):
|
|||||||
return disque.Disque(list_key=list_key)
|
return disque.Disque(list_key=list_key)
|
||||||
# default to redis
|
# default to redis
|
||||||
else:
|
else:
|
||||||
from brokers import redis
|
from brokers import redis_broker
|
||||||
return redis.Redis(list_key=list_key)
|
return redis_broker.Redis(list_key=list_key)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import django_redis
|
import django_redis
|
||||||
from django_q.brokers import redis
|
from django_q.brokers import redis_broker
|
||||||
from django_q.conf import Conf
|
from django_q.conf import Conf
|
||||||
|
|
||||||
|
|
||||||
class DjangoRedis(redis.Redis):
|
class DjangoRedis(redis_broker.Redis):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_connection():
|
def get_connection():
|
||||||
|
|||||||
Reference in New Issue
Block a user