class Sitemap [source] A Sitemap class can define the following methods/attributes:
protocol Optional. This attribute defines the protocol ('http'
views.sitemap(request, sitemaps, section=None, template_name='sitemap.xml', content_type='application/xml') To activate sitemap
limit Optional. This attribute defines the maximum number of URLs included
changefreq Optional. Either a method or attribute. If it’s a method, it should
lastmod Optional. Either a method or attribute. If it’s a method, it should
priority Optional. Either a method or attribute. If it’s a method, it should
class GenericSitemap [source] The django.contrib.sitemaps.GenericSitemap class
items [source] Required. A method that returns a list of objects. The framework
views.index(request, sitemaps, template_name='sitemap_index.xml', content_type='application/xml', sitemap_url_name='django.contrib.sitemaps.views.sitemap')
Page 1 of 2