소스 검색

Merge branch '3.1' of github.com:celery/celery into 3.1

Ask Solem 9 년 전
부모
커밋
83c5b791ba
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      celery/app/annotations.py
  2. 2 1
      docs/userguide/tasks.rst

+ 1 - 1
celery/app/annotations.py

@@ -3,7 +3,7 @@
     celery.app.annotations
     celery.app.annotations
     ~~~~~~~~~~~~~~~~~~~~~~
     ~~~~~~~~~~~~~~~~~~~~~~
 
 
-    Annotations is a nice term for moneky patching
+    Annotations is a nice term for monkey patching
     task classes in the configuration.
     task classes in the configuration.
 
 
     This prepares and performs the annotations in the
     This prepares and performs the annotations in the

+ 2 - 1
docs/userguide/tasks.rst

@@ -1622,7 +1622,8 @@ blog/tasks.py
 
 
         comment = Comment.objects.get(pk=comment_id)
         comment = Comment.objects.get(pk=comment_id)
         current_domain = Site.objects.get_current().domain
         current_domain = Site.objects.get_current().domain
-        akismet = Akismet(settings.AKISMET_KEY, 'http://{0}'.format(domain))
+        akismet = Akismet(settings.AKISMET_KEY,
+                          'http://{0}'.format(current_domain))
         if not akismet.verify_key():
         if not akismet.verify_key():
             raise ImproperlyConfigured('Invalid AKISMET_KEY')
             raise ImproperlyConfigured('Invalid AKISMET_KEY')