pflaenz.li/pflaenzli/pflaenzli/sitemaps.py

14 lines
332 B
Python
Raw Normal View History

2023-05-18 11:04:14 +02:00
from django.contrib import sitemaps
from django.urls import reverse
class StaticViewSitemap(sitemaps.Sitemap):
priority = 0.5
changefreq = 'monthly'
def items(self):
return ['index', 'list_offers', 'create_offer', 'register_user', 'faq', 'imprint']
def location(self, item):
return reverse(item)