sitemaps.Sitemap
  • References/Python/Django/API/contrib packages/The sitemap framework

class Sitemap [source] A Sitemap class can define the following methods/attributes:

2025-01-10 15:47:30
sitemaps.views.sitemap()
  • References/Python/Django/API/contrib packages/The sitemap framework

views.sitemap(request, sitemaps, section=None, template_name='sitemap.xml', content_type='application/xml') To activate sitemap

2025-01-10 15:47:30
sitemaps.Sitemap.protocol
  • References/Python/Django/API/contrib packages/The sitemap framework

protocol Optional. This attribute defines the protocol ('http'

2025-01-10 15:47:30
sitemaps.Sitemap.limit
  • References/Python/Django/API/contrib packages/The sitemap framework

limit Optional. This attribute defines the maximum number of URLs included

2025-01-10 15:47:30
sitemaps.Sitemap.changefreq
  • References/Python/Django/API/contrib packages/The sitemap framework

changefreq Optional. Either a method or attribute. If it’s a method, it should

2025-01-10 15:47:30
sitemaps.Sitemap.lastmod
  • References/Python/Django/API/contrib packages/The sitemap framework

lastmod Optional. Either a method or attribute. If it’s a method, it should

2025-01-10 15:47:30
sitemaps.Sitemap.priority
  • References/Python/Django/API/contrib packages/The sitemap framework

priority Optional. Either a method or attribute. If it’s a method, it should

2025-01-10 15:47:30
sitemaps.Sitemap.items
  • References/Python/Django/API/contrib packages/The sitemap framework

items [source] Required. A method that returns a list of objects. The framework

2025-01-10 15:47:30
sitemaps.GenericSitemap
  • References/Python/Django/API/contrib packages/The sitemap framework

class GenericSitemap [source] The django.contrib.sitemaps.GenericSitemap class

2025-01-10 15:47:30
sitemaps.views.index()
  • References/Python/Django/API/contrib packages/The sitemap framework

views.index(request, sitemaps, template_name='sitemap_index.xml', content_type='application/xml', sitemap_url_name='django.contrib.sitemaps.views.sitemap')

2025-01-10 15:47:30