diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-10-30 19:24:26 -0200 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:24:44 -0200 |
commit | 19f0a3fb57e53977d1f2017033f0714a8cfc8779 (patch) | |
tree | cdce7728ceec7202086f0cd7605a496887ee0afe /urls.py | |
parent | 046b4543a4ceaf4cfe6736443d4a7e453b5bf14b (diff) |
added feeds from archweb_pub
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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'}), |