I have built a static sitemap in my django project as below:
class StaticViewSitemap(Sitemap):
changefreq = "weekly"
priority = 0.9
protocol = 'http' if DEBUG else 'https'
def items(self):
return ['home', 'contact_us', 'blog', ]
def location(self, item):
return reverse(item)
What should I do if I want to set different priorities and change frequency for different urls?
I have seen this question but I still ddo not know what to do: Priority issue in Sitemaps
In a similar way, you can use: