summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-30 19:24:26 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:24:44 -0200
commit19f0a3fb57e53977d1f2017033f0714a8cfc8779 (patch)
treecdce7728ceec7202086f0cd7605a496887ee0afe /urls.py
parent046b4543a4ceaf4cfe6736443d4a7e453b5bf14b (diff)
added feeds from archweb_pub
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'}),