mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 01:48:12 +08:00
Recognize Django 1.10 versions
This commit is contained in:
@@ -11,7 +11,8 @@ default_app_config = 'django_q.apps.DjangoQConfig'
|
|||||||
|
|
||||||
# root imports will slowly be deprecated.
|
# root imports will slowly be deprecated.
|
||||||
# please import from the relevant sub modules
|
# please import from the relevant sub modules
|
||||||
if get_version().split('.')[1][0] != '9':
|
split_version = get_version().split('.')
|
||||||
|
if split_version[1][0] != '9' and split_version[1][:2]!='10':
|
||||||
from .tasks import async, schedule, result, result_group, fetch, fetch_group, count_group, delete_group, queue_size
|
from .tasks import async, schedule, result, result_group, fetch, fetch_group, count_group, delete_group, queue_size
|
||||||
from .models import Task, Schedule, Success, Failure
|
from .models import Task, Schedule, Success, Failure
|
||||||
from .cluster import Cluster
|
from .cluster import Cluster
|
||||||
|
|||||||
Reference in New Issue
Block a user