From 69a2d0c5bff7e67ec00910491a3939982f75c466 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 3 Oct 2016 16:04:30 -0400 Subject: [PATCH] [1.9.x] Fixed #27307 -- Added missing url names in sitemaps docs. Backport of fe1aee6b98d2a94ecc983463938135d192ef9afc from master --- docs/ref/contrib/sitemaps.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index a5eac07824..8fb6a4d4b5 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -366,7 +366,8 @@ Here's what the relevant URLconf lines would look like for the example above:: urlpatterns = [ url(r'^sitemap\.xml$', views.index, {'sitemaps': sitemaps}), - url(r'^sitemap-(?P
.+)\.xml$', views.sitemap, {'sitemaps': sitemaps}), + url(r'^sitemap-(?P
.+)\.xml$', views.sitemap, {'sitemaps': sitemaps}, + name='django.contrib.sitemaps.views.sitemap'), ] This will automatically generate a :file:`sitemap.xml` file that references @@ -412,7 +413,7 @@ parameter to the ``sitemap`` and ``index`` views via the URLconf:: url(r'^custom-sitemap-(?P
.+)\.xml$', views.sitemap, { 'sitemaps': sitemaps, 'template_name': 'custom_sitemap.html' - }), + }, name='django.contrib.sitemaps.views.sitemap'), ]