Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Make minimal configuration for django selery integration

Jakub Draganeka354151f2600
diff --git a/saleor/__init__.py b/saleor/__init__.py
index c8ea969c84..b0342047d0 100644
--- a/saleor/__init__.py
+++ b/saleor/__init__.py
@@ -1 +1,5 @@
+from __future__ import absolute_import, unicode_literals
+from .celery_mail import app as celery_app
+
+__all__ = ['celery_app']
__version__ = 'dev'
diff --git a/saleor/settings.py b/saleor/settings.py
index fdda7970c3..db6e32d535 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -180,6 +180,7 @@ INSTALLED_APPS = [
'social_django',
'django_countries',
'django_filters',
+ 'django_celery_results',
]
LOGGING = {
@@ -409,4 +410,4 @@ CELERY_TASK_ALWAYS_EAGER = False if BROKER_URL else True
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
-CELERY_RESULT_BACKEND = 'django-db'
\ No newline at end of file
+CELERY_RESULT_BACKEND = 'django-db'