Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion r12190 - django/trunk/docs/ref/contrib
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nore...@djangoproject.com  
View profile  
 More options Jan 10 2010, 1:53 pm
From: nore...@djangoproject.com
Date: Sun, 10 Jan 2010 12:53:12 -0600 (CST)
Local: Sun, Jan 10 2010 1:53 pm
Subject: [Changeset] r12190 - django/trunk/docs/ref/contrib
Author: adrian
Date: 2010-01-10 12:53:11 -0600 (Sun, 10 Jan 2010)
New Revision: 12190

Modified:
   django/trunk/docs/ref/contrib/sitemaps.txt
Log:
Fixed #11693 -- Added escaping for the dot in sitemap.xml in the URLpattern in sitemaps.txt. Thanks, timo

Modified: django/trunk/docs/ref/contrib/sitemaps.txt
===================================================================
--- django/trunk/docs/ref/contrib/sitemaps.txt  2010-01-10 18:51:32 UTC (rev 12189)
+++ django/trunk/docs/ref/contrib/sitemaps.txt  2010-01-10 18:53:11 UTC (rev 12190)
@@ -54,7 +54,7 @@
 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 @@
         # ...

         # 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 @@

 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.