Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add basic Celery settings
Jakub Draganekea2fa4ce9d30
diff --git a/requirements.in b/requirements.inindex e9a2e3624e..53c542d06a 100644--- a/requirements.in+++ b/requirements.in@@ -17,6 +17,7 @@ django-storages>=1.4.1django-templated-email>=2.2.0django-versatileimagefield>=1.0.1django-webpack-loader>=0.3.0+django-celery-resultselasticsearch>=5.4faker>=0.7.7google-measurement-protocoldiff --git a/requirements.txt b/requirements.txtindex ac07a399c2..b58a7e871d 100644--- a/requirements.txt+++ b/requirements.txt@@ -22,6 +22,7 @@ dj-database-url==0.4.2dj-email-url==0.0.10django-bootstrap3==9.0.0django-cache-url==1.3.1+django-celery-results==1.0.1django-countries==4.6.1django-filter==1.0.4django-mptt==0.8.7diff --git a/saleor/settings.py b/saleor/settings.pyindex a72cf5a32c..fdda7970c3 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -402,3 +402,11 @@ SOCIAL_AUTH_USER_MODEL = AUTH_USER_MODELSOCIAL_AUTH_FACEBOOK_SCOPE = ['email']SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'fields': 'id, email'}++# CELERY SETTINGS+BROKER_URL = os.environ.get('REDIS_BROKER_URL') or ''+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