lemoncurry/home/sitemaps.py

13 lines
245 B
Python
Raw Normal View History

from django.contrib import sitemaps
from django.urls import reverse
class HomeSitemap(sitemaps.Sitemap):
changefreq = 'daily'
def items(self):
return ('home:index',)
def location(self, item):
return reverse(item)