Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4348 -- Updated Google sitemap ping code. Thanks, marijn

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03966f077b8f87d6a59366dedc80fcf1f935e2d3 1 parent 744d065
Adrian Holovaty authored May 20, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/sitemaps/__init__.py
4  django/contrib/sitemaps/__init__.py
... ...
@@ -1,7 +1,7 @@
1 1
 from django.core import urlresolvers
2 2
 import urllib
3 3
 
4  
-PING_URL = "http://www.google.com/webmasters/sitemaps/ping"
  4
+PING_URL = "http://www.google.com/webmasters/tools/ping"
5 5
 
6 6
 class SitemapNotFound(Exception):
7 7
     pass
@@ -29,7 +29,7 @@ def ping_google(sitemap_url=None, ping_url=PING_URL):
29 29
 
30 30
     from django.contrib.sites.models import Site
31 31
     current_site = Site.objects.get_current()
32  
-    url = "%s%s" % (current_site.domain, sitemap_url)
  32
+    url = "http://%s%s" % (current_site.domain, sitemap_url)
33 33
     params = urllib.urlencode({'sitemap':url})
34 34
     urllib.urlopen("%s?%s" % (ping_url, params))
35 35
 

0 notes on commit 03966f0

Please sign in to comment.
Something went wrong with that request. Please try again.