diff options
author | hardythe1 | 2015-05-26 18:39:19 +0530 |
---|---|---|
committer | hardythe1 | 2015-05-26 18:39:19 +0530 |
commit | 59d3c4b1cf183a2772c7337fbb27543aa4046e01 (patch) | |
tree | bb612d1a41b37ae571ab6128b44af1e89c5046a2 /PythonTBC/sitemap.py | |
parent | 064f18d507bc225ef0941344a66f99b489a05f8c (diff) | |
download | Python-TBC-Interface-59d3c4b1cf183a2772c7337fbb27543aa4046e01.tar.gz Python-TBC-Interface-59d3c4b1cf183a2772c7337fbb27543aa4046e01.tar.bz2 Python-TBC-Interface-59d3c4b1cf183a2772c7337fbb27543aa4046e01.zip |
Added sitemap
Diffstat (limited to 'PythonTBC/sitemap.py')
-rw-r--r-- | PythonTBC/sitemap.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/PythonTBC/sitemap.py b/PythonTBC/sitemap.py new file mode 100644 index 0000000..6f70945 --- /dev/null +++ b/PythonTBC/sitemap.py @@ -0,0 +1,9 @@ +from django.contrib.sitemaps import Sitemap +from tbc.models import Chapters + +class TbcBookSitemap(Sitemap): + changefreq = "never" + priority = 0.5 + + def items(self): + return Chapters.objects.all() |