summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
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', {