Ticket #4348: google_sitemap_ping.diff

File google_sitemap_ping.diff, 793 bytes (added by marijn <marijn@…>, 17 years ago)
  • django/contrib/sitemaps/__init__.py

     
    11from django.core import urlresolvers
    22import urllib
    33
    4 PING_URL = "http://www.google.com/webmasters/sitemaps/ping"
     4PING_URL = "http://www.google.com/webmasters/tools/ping"
    55
    66class SitemapNotFound(Exception):
    77    pass
     
    2929
    3030    from django.contrib.sites.models import Site
    3131    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)
    3333    params = urllib.urlencode({'sitemap':url})
    3434    urllib.urlopen("%s?%s" % (ping_url, params))
    3535
Back to Top