From fe1aee6b98d2a94ecc983463938135d192ef9afc Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 3 Oct 2016 16:04:30 -0400 Subject: [PATCH] Fixed #27307 -- Added missing url names in sitemaps docs. --- 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 29205c452b..d3ce1cdb7f 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -363,7 +363,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 @@ -409,7 +410,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'), ]