diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-09-02 18:10:00 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-09-02 18:10:00 +0000 |
| commit | 5a1d560fb370a2f7dfd2477022e028106aa15de6 (patch) | |
| tree | 7758388d6f41b032ccd82e355a3ace37e8a5eeb0 | |
| parent | 46d7defb7de856b434bac77231c2ac708a3bc218 (diff) | |
Fixed #2643 -- Fixed incorrect reverse() view names in sitemaps contrib app. Thanks for the patch, dummy@habmalnefrage.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/sitemaps/__init__.py | 4 | ||||
| -rw-r--r-- | django/contrib/sitemaps/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py index 50f60b821e..2c76e13c22 100644 --- a/django/contrib/sitemaps/__init__.py +++ b/django/contrib/sitemaps/__init__.py @@ -16,11 +16,11 @@ def ping_google(sitemap_url=None, ping_url=PING_URL): if sitemap_url is None: try: # First, try to get the "index" sitemap URL. - sitemap_url = urlresolvers.reverse('django.contrib.sitemap.views.index') + sitemap_url = urlresolvers.reverse('django.contrib.sitemaps.views.index') except urlresolvers.NoReverseMatch: try: # Next, try for the "global" sitemap URL. - sitemap_url = urlresolvers.reverse('django.contrib.sitemap.views.sitemap') + sitemap_url = urlresolvers.reverse('django.contrib.sitemaps.views.sitemap') except urlresolvers.NoReverseMatch: pass diff --git a/django/contrib/sitemaps/views.py b/django/contrib/sitemaps/views.py index 8a4592c3e4..576e3d0bb8 100644 --- a/django/contrib/sitemaps/views.py +++ b/django/contrib/sitemaps/views.py @@ -8,7 +8,7 @@ def index(request, sitemaps): sites = [] protocol = request.is_secure() and 'https' or 'http' for section in sitemaps.keys(): - sitemap_url = urlresolvers.reverse('django.contrib.sitemap.views.sitemap', kwargs={'section': section}) + sitemap_url = urlresolvers.reverse('django.contrib.sitemaps.views.sitemap', kwargs={'section': section}) sites.append('%s://%s%s' % (protocol, current_site.domain, sitemap_url)) xml = loader.render_to_string('sitemap_index.xml', {'sitemaps': sites}) return HttpResponse(xml, mimetype='application/xml') |
