diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-10-30 19:36:42 -0200 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:24:45 -0200 |
commit | c1a197d29a692b7066ad12026f4bb9e92172f6b4 (patch) | |
tree | 7478f1c2a6f90c5d42c04ab5dd6f40c7cc9521d6 /urls.py | |
parent | 19f0a3fb57e53977d1f2017033f0714a8cfc8779 (diff) |
added sitemaps from archweb_pub
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -8,6 +8,7 @@ from django.contrib.auth.decorators import permission_required from archweb.main.models import Todolist from archweb.feeds import PackageFeed, NewsFeed +from archweb.sitemaps import NewsSitemap, PackagesSitemap feeds = { @@ -15,6 +16,11 @@ feeds = { 'news': NewsFeed } +sitemaps = { + 'news': NewsSitemap, + 'packages': PackagesSitemap, +} + admin.autodiscover() urlpatterns = patterns('', @@ -60,6 +66,8 @@ urlpatterns = patterns('', # Feeds and sitemaps (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}), + (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', + {'sitemaps': sitemaps}), # Authentication / Admin (r'^login/$', 'django.contrib.auth.views.login', { |