From bd57e82105654b70d6b7308aa9fc96b3c46a9802 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Sun, 24 Apr 2016 15:59:20 +0800 Subject: [PATCH] =?UTF-8?q?celery=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8pickl?= =?UTF-8?q?e=EF=BC=8C=E9=81=BF=E5=85=8D=E5=8F=AF=E8=83=BD=E7=9A=84?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=A3=8E=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oj/local_settings.py | 3 ++- oj/server_settings.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/oj/local_settings.py b/oj/local_settings.py index 77b1bca..bd74e35 100644 --- a/oj/local_settings.py +++ b/oj/local_settings.py @@ -30,7 +30,8 @@ REDIS_QUEUE = { # for celery BROKER_URL = 'redis://%s:%s/%s' % (REDIS_QUEUE["host"], str(REDIS_QUEUE["port"]), str(REDIS_QUEUE["db"])) -ACCEPT_CONTENT = ['json'] +CELERY_ACCEPT_CONTENT = ["json"] +CELERY_TASK_SERIALIZER = "json" DEBUG = True diff --git a/oj/server_settings.py b/oj/server_settings.py index b09a229..3a566dd 100644 --- a/oj/server_settings.py +++ b/oj/server_settings.py @@ -39,7 +39,8 @@ REDIS_QUEUE = { # for celery BROKER_URL = 'redis://%s:%s/%s' % (REDIS_QUEUE["host"], str(REDIS_QUEUE["port"]), str(REDIS_QUEUE["db"])) -ACCEPT_CONTENT = ['json'] +CELERY_ACCEPT_CONTENT = ["json"] +CELERY_TASK_SERIALIZER = "json" DEBUG = False