class Sitemap [source] A Sitemap class can define the following methods/attributes:
limit Optional. This attribute defines the maximum number of URLs included
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
changefreq Optional. Either a method or attribute. If it’s a method, it should
class GenericSitemap [source] The django.contrib.sitemaps.GenericSitemap class
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
items [source] Required. A method that returns a list of objects. The framework
location [source] Optional. Either a method or attribute.
Page 1 of 2