-
-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from Koed00/dev
Removes root imports for Django 1.9
- Loading branch information
Showing
11 changed files
with
49 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import os | ||
import sys | ||
from django import get_version | ||
|
||
myPath = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, myPath) | ||
|
||
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 .cluster import Cluster | ||
from .status import Stat | ||
from .brokers import get_broker | ||
|
||
VERSION = (0, 7, 3) | ||
VERSION = (0, 7, 4) | ||
|
||
default_app_config = 'django_q.apps.DjangoQConfig' | ||
|
||
# root imports will slowly be deprecated. | ||
# please import from the relevant sub modules | ||
if get_version().split('.')[1][0] != '9': | ||
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 .cluster import Cluster | ||
from .status import Stat | ||
from .brokers import get_broker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters