Ticket #8804: 8804.diff

File 8804.diff, 751 bytes (added by Thomas Kerpe, 16 years ago)
  • docs/ref/contrib/sitemaps.txt

     
    281281Here is what the relevant URLconf lines would look like for the example above::
    282282
    283283   (r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps})
    284    (r'^sitemap-(?P<section>.+).xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
     284   (r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
    285285
    286286This will automatically generate a :file:`sitemap.xml` file that references both
    287287:file:`sitemap-flatpages.xml` and :file:`sitemap-blog.xml`. The
Back to Top