mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-24 20:18:13 +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)
|
||||
# default to redis
|
||||
else:
|
||||
from brokers import redis
|
||||
return redis.Redis(list_key=list_key)
|
||||
from brokers import redis_broker
|
||||
return redis_broker.Redis(list_key=list_key)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import django_redis
|
||||
from django_q.brokers import redis
|
||||
from django_q.brokers import redis_broker
|
||||
from django_q.conf import Conf
|
||||
|
||||
|
||||
class DjangoRedis(redis.Redis):
|
||||
class DjangoRedis(redis_broker.Redis):
|
||||
|
||||
@staticmethod
|
||||
def get_connection():
|
||||
|
||||
Reference in New Issue
Block a user