Prechádzať zdrojové kódy

Fix syntax error in one example at the Tasks userguide doc.

Tiago Moreira Vieira 9 rokov pred
rodič
commit
fcf9763d58
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      docs/userguide/tasks.rst

+ 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')