I have a set of items = [a,b,c]
And I have a page that takes in two items and compare them.
So the URLs look like this:
http://127.0.0.1:8000/compare/a/b
http://127.0.0.1:8000/compare/a/c
http://127.0.0.1:8000/compare/b/c
How could I make a sitemap class to represent all of them?
*This is my sitemap class with one argument
class ItemsSitemap(Sitemap):
changefreq = "monthly"
priority = 0.8
def items(self):
return Items.objects.order_by('id')
def location(self, obj):
return '/items/%s' % (obj.id)