Skip to content

Commit

Permalink
Added weblog RSS feed to django_website
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@37 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrian committed Jul 14, 2005
1 parent 266a721 commit f905dc0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions django_website/settings/main_rss.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from django.core import rss
from django.models.blog import entries

weblog_entry_feed = rss.FeedConfiguration(
slug = 'weblog',
title_cb = lambda param: "The Django weblog",
link_cb = lambda param: "http://www.djangoproject.com/weblog/",
description_cb = lambda param: "Latest news about Django, the Python Web framework.",
get_list_func_cb = lambda obj: entries.get_list,
get_list_kwargs = {
'limit': 10,
}
)

rss.register_feed(weblog_entry_feed)
1 change: 1 addition & 0 deletions django_website/settings/urls/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
urlpatterns = patterns('',
(r'^weblog/', include('django_website.apps.blog.urls.blog')),
(r'^documentation/', include('django_website.apps.docs.urls.docs')),
(r'^rss/', include('django.conf.urls.rss')),
(r'', include('django.conf.urls.flatfiles')),
)

0 comments on commit f905dc0

Please sign in to comment.