summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2010-01-10 18:53:11 +0000
committerAdrian Holovaty <adrian@holovaty.com>2010-01-10 18:53:11 +0000
commit260c5de2f948bf7bd0bb2299fe958bd3d2ec0adf (patch)
tree8ec5a73e4f178db61dd085c97d65f980fc8c2508 /docs/ref
parent34db1d647453171c2df73beb8ec3fd9cdd8a6447 (diff)
Fixed #11693 -- Added escaping for the dot in sitemap.xml in the URLpattern in sitemaps.txt. Thanks, timo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/sitemaps.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index 82a4d15cf4..a71f19d786 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -54,7 +54,7 @@ Initialization
To activate sitemap generation on your Django site, add this line to your
:ref:`URLconf <topics-http-urls>`::
- (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
+ (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
This tells Django to build a sitemap when a client accesses :file:`/sitemap.xml`.
@@ -261,7 +261,7 @@ Here's an example of a :ref:`URLconf <topics-http-urls>` using both::
# ...
# the sitemap
- (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
+ (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
)
.. _URLconf: ../url_dispatch/
@@ -280,7 +280,7 @@ references individual sitemap files, one per each section defined in your
Here's what the relevant URLconf lines would look like for the example above::
- (r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps}),
+ (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps}),
(r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
This will automatically generate a :file:`sitemap.xml` file that references both