mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 14:20:56 +08:00
Removes root imports
This commit is contained in:
+1
-16
@@ -1,21 +1,6 @@
|
|||||||
# import os
|
VERSION = (1, 0, 0)
|
||||||
# import sys
|
|
||||||
import django
|
|
||||||
|
|
||||||
# myPath = os.path.dirname(os.path.abspath(__file__))
|
|
||||||
# sys.path.insert(0, myPath)
|
|
||||||
|
|
||||||
VERSION = (0, 9, 4)
|
|
||||||
|
|
||||||
default_app_config = 'django_q.apps.DjangoQConfig'
|
default_app_config = 'django_q.apps.DjangoQConfig'
|
||||||
|
|
||||||
# root imports will slowly be deprecated.
|
|
||||||
# please import from the relevant sub modules
|
|
||||||
if django.VERSION[:2] < (1, 9):
|
|
||||||
from .tasks import async_task, schedule, result, result_group, fetch, fetch_group, count_group, delete_group, queue_size
|
|
||||||
from .models import Task, Schedule, Success, Failure
|
|
||||||
from .cluster import Cluster
|
|
||||||
from .status import Stat
|
|
||||||
from .brokers import get_broker
|
|
||||||
|
|
||||||
__all__ = ['conf', 'cluster', 'models', 'tasks']
|
__all__ = ['conf', 'cluster', 'models', 'tasks']
|
||||||
|
|||||||
Reference in New Issue
Block a user