-
-
Notifications
You must be signed in to change notification settings - Fork 506
Closed
Description
def location(self, item: Model) -> str: ... |
The item shouldn't just be Model. As you can see it can also just be a string too if creating a sitemap of pages that aren't in models:
class StaticViewSitemap(Sitemap):
priority = 1
changefreq = "always"
def items(self) -> List[str]:
return ["home", "about", "contact", "recommendations", "privacy-policy", "blog"]
def location(self, item: str) -> str:
return reverse(item)
Metadata
Metadata
Assignees
Labels
No labels