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/urls.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/urls.py')
-rw-r--r-- | PythonTBC/urls.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/PythonTBC/urls.py b/PythonTBC/urls.py index d75e545..c5d3753 100644 --- a/PythonTBC/urls.py +++ b/PythonTBC/urls.py @@ -4,6 +4,11 @@ from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() +from sitemap import TbcBookSitemap +sitemaps = { + 'book': TbcBookSitemap, +} + urlpatterns = patterns('', # Examples: # url(r'^$', 'PythonTBC.views.home', name='home'), @@ -16,4 +21,7 @@ urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^comments/', include('comments.urls')), url(r'^', include('tbc.urls', namespace='tbc')), + url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), ) + + |