summaryrefslogtreecommitdiff
path: root/chimere/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/tasks.py')
-rw-r--r--chimere/tasks.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/chimere/tasks.py b/chimere/tasks.py
index 58af162..c69302f 100644
--- a/chimere/tasks.py
+++ b/chimere/tasks.py
@@ -17,6 +17,11 @@
# See the file COPYING for details.
+from django.conf import settings
+if 'kombu.transport.django' not in settings.INSTALLED_APPS \
+ or 'djcelery' in settings.INSTALLED_APPS:
+ raise ImportError
+
from celery.decorators import task
from django.core.exceptions import ObjectDoesNotExist