Files
django_lottopy/lottopy_site/lottopy/sitemaps.py
T
2022-06-19 21:31:03 -04:00

15 lines
335 B
Python

from django.contrib import sitemaps
from django.urls import reverse
#from .views import home, about, robots_txt
class StaticViewSitemap(sitemaps.Sitemap):
protocol = 'https'
priority=.5,
changefreq='weekly'
def items(self):
return ['home', 'about']
def location(self, item):
return reverse(item)