Moves optional import to root

This commit is contained in:
Ilan Steemers
2020-06-29 19:08:33 +02:00
parent 34293cfcad
commit f0061dccd6
5 changed files with 13 additions and 18 deletions
+8 -2
View File
@@ -1,6 +1,12 @@
VERSION = (1, 2, 4)
default_app_config = 'django_q.apps.DjangoQConfig'
default_app_config = "django_q.apps.DjangoQConfig"
__all__ = ['conf', 'cluster', 'models', 'tasks']
__all__ = ["conf", "cluster", "models", "tasks", "croniter"]
# Optional Imports
try:
from croniter import croniter
except ImportError:
croniter = None