summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-08-24 09:19:18 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-08-24 09:19:18 +0000
commitac858a2a610994b1999a4dcbf34443285ad45b34 (patch)
tree771e67fa78a725ba18bae6fb76bb126295b5ff24 /docs
parent27371e3286ae723fb96dfa990eee197454350163 (diff)
Fixed #7996: Added a note that you need to register your site with Google in order for the ping_google command to work. Thanks to Jason Broyles (issya) for the suggestion.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/sitemaps.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index c95ded6712..9d7636ad6a 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -296,8 +296,8 @@ Pinging Google
==============
You may want to "ping" Google when your sitemap changes, to let it know to
-reindex your site. The framework provides a function to do just that:
-:func:`django.contrib.sitemaps.ping_google()`.
+reindex your site. The sitemaps framework provides a function to do just
+that: :func:`django.contrib.sitemaps.ping_google()`.
.. function:: ping_google
@@ -311,6 +311,13 @@ reindex your site. The framework provides a function to do just that:
:exc:`django.contrib.sitemaps.SitemapNotFound` if it cannot determine your
sitemap URL.
+.. admonition:: Register with Google first!
+
+ The :func:`ping_google` command only works if you have registered your
+ site with `Google Webmaster Tools`_.
+
+.. _`Google Webmaster Tools`: http://www.google.com/webmasters/tools/
+
One useful way to call :func:`ping_google` is from a model's ``save()``
method::