Set Celery serialization to JSON only

This commit is contained in:
Roberto Rosario
2014-10-29 20:16:33 -04:00
parent 12c64bd83b
commit c8fe6a6fd4

View File

@@ -257,6 +257,9 @@ CELERY_TIMEZONE = 'UTC'
CELERY_ENABLE_UTC = True
CELERY_ALWAYS_EAGER = True
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
# ------------ CORS ------------
CORS_ORIGIN_ALLOW_ALL = True
# ------ Django REST Swagger -----