소스 검색

Django example; Use json serializers

Ask Solem 11 년 전
부모
커밋
f8027b961b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/django/proj/settings.py

+ 2 - 0
examples/django/proj/settings.py

@@ -11,6 +11,8 @@ BROKER_URL = 'amqp://guest:guest@localhost//'
 #: Only add pickle to this list if your broker is secured
 #: from unwanted access (see userguide/security.html)
 CELERY_ACCEPT_CONTENT = ['json']
+CELERY_TASK_SERIALIZER = 'json'
+CELERY_RESULT_SERIALIZER = 'json'
 
 # Django settings for proj project.