summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-30 19:36:42 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:24:45 -0200
commitc1a197d29a692b7066ad12026f4bb9e92172f6b4 (patch)
tree7478f1c2a6f90c5d42c04ab5dd6f40c7cc9521d6 /urls.py
parent19f0a3fb57e53977d1f2017033f0714a8cfc8779 (diff)
added sitemaps from archweb_pub
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 0fda8d5a..7a870eab 100644
--- a/urls.py
+++ b/urls.py
@@ -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', {