Ticket #2713: sitemaps.patch
File sitemaps.patch, 811 bytes (added by , 15 years ago) |
---|
-
django/contrib/sitemaps/views.py
14 14 pages = site().paginator.num_pages 15 15 else: 16 16 pages = site.paginator.num_pages 17 try: 18 sitemap_url = urlresolvers.reverse('django.contrib.sitemaps.views.sitemap', kwargs={'section': section}) 19 except urlresolvers.NoReverseMatch: 20 sitemap_url = urlresolvers.reverse('contrib.sitemaps.sitemap', kwargs={'section': section}) 17 sitemap_url = urlresolvers.reverse('django.contrib.sitemaps.views.sitemap', kwargs={'section': section}) 21 18 sites.append('%s://%s%s' % (protocol, current_site.domain, sitemap_url)) 22 19 if pages > 1: 23 20 for page in range(2, pages+1):