summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 9aa879b1..0fda8d5a 100644
--- a/urls.py
+++ b/urls.py
@@ -7,6 +7,13 @@ from django.views.generic.simple import direct_to_template
from django.contrib.auth.decorators import permission_required
from archweb.main.models import Todolist
+from archweb.feeds import PackageFeed, NewsFeed
+
+
+feeds = {
+ 'packages': PackageFeed,
+ 'news': NewsFeed
+}
admin.autodiscover()
@@ -50,6 +57,10 @@ urlpatterns = patterns('',
(r'^devel/newuser/$', 'archweb.devel.views.new_user_form'),
+# Feeds and sitemaps
+ (r'^feeds/(?P<url>.*)/$',
+ 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
+
# Authentication / Admin
(r'^login/$', 'django.contrib.auth.views.login', {
'template_name': 'registration/login.html'}),