1
2
3
4
5
6
7
8
9
10
11
12
13
|
from django.contrib.sitemaps import Sitemap
from django.urls import reverse
class StaticViewSitemap(Sitemap):
priority = 0.5
changefreq = 'yearly'
def items(self):
return ['mainpage', 'changelog']
def location(self, item):
return reverse(item)
|