MCPcopy
hub / github.com/django/django / get_urls

Method get_urls

django/contrib/sitemaps/__init__.py:103–106  ·  view source on GitHub ↗
(self, page=1, site=None, protocol=None)

Source from the content-addressed store, hash-verified

101 return site.domain
102
103 def get_urls(self, page=1, site=None, protocol=None):
104 protocol = self.get_protocol(protocol)
105 domain = self.get_domain(site)
106 return self._urls(page, protocol, domain)
107
108 def get_latest_lastmod(self):
109 if not hasattr(self, "lastmod"):

Callers 2

test_sitemap_itemMethod · 0.95
sitemapFunction · 0.45

Calls 3

get_protocolMethod · 0.95
get_domainMethod · 0.95
_urlsMethod · 0.95

Tested by 1

test_sitemap_itemMethod · 0.76