278
278
* The :func:`django.contrib.sitemaps.views.sitemap` view should take a
279
279
:data:`section` keyword argument.
284
(r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
283
(r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps}),
284
(r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
286
286
This will automatically generate a :file:`sitemap.xml` file that references both
287
287
:file:`sitemap-flatpages.xml` and :file:`sitemap-blog.xml`. The
288
288
:class:`~django.contrib.sitemaps.Sitemap` classes and the :data:`sitemaps` dict