class documentation

class KMLSitemap(Sitemap): (source)

Known subclasses: django.contrib.gis.sitemaps.KMZSitemap

View In Hierarchy

A minimal hook to produce KML sitemaps.

Method __init__ Undocumented
Method get_urls This method is overridden so the appropriate `geo_format` attribute is placed on each URL element.
Method items Undocumented
Method location Undocumented
Class Variable geo_format Undocumented
Instance Variable locations Undocumented
Method _build_kml_sources Go through the given sources and return a 3-tuple of the application label, module name, and field name of every GeometryField encountered in the sources.

Inherited from Sitemap:

Method get_domain Undocumented
Method get_latest_lastmod Undocumented
Method get_protocol Undocumented
Class Variable alternates Undocumented
Class Variable i18n Undocumented
Class Variable languages Undocumented
Class Variable limit Undocumented
Class Variable protocol Undocumented
Class Variable x_default Undocumented
Instance Variable latest_lastmod Undocumented
Property paginator Undocumented
Method _get Undocumented
Method _items Undocumented
Method _languages Undocumented
Method _location Undocumented
Method _urls Undocumented
def __init__(self, locations=None): (source)

Undocumented

def get_urls(self, page=1, site=None, protocol=None): (source)

This method is overridden so the appropriate `geo_format` attribute is placed on each URL element.

def items(self): (source)

Undocumented

def location(self, obj): (source)
geo_format: str = (source)

Undocumented

locations = (source)

Undocumented

def _build_kml_sources(self, sources): (source)

Go through the given sources and return a 3-tuple of the application label, module name, and field name of every GeometryField encountered in the sources. If no sources are provided, then all models.