Ticket #2713: sitemaps.patch

File sitemaps.patch, 811 bytes (added by Stavros Korokithakis, 15 years ago)
  • django/contrib/sitemaps/views.py

     
    1414            pages = site().paginator.num_pages
    1515        else:
    1616            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})
    2118        sites.append('%s://%s%s' % (protocol, current_site.domain, sitemap_url))
    2219        if pages > 1:
    2320            for page in range(2, pages+1):
Back to Top