2008-08-11 22:22:26 +00:00
|
|
|
from feeds import TestRssFeed, TestAtomFeed, TestCustomFeed, ComplexFeed
|
2008-03-20 06:35:53 +00:00
|
|
|
from django.conf.urls.defaults import patterns
|
|
|
|
|
2008-08-11 20:49:19 +00:00
|
|
|
feed_dict = {
|
|
|
|
'complex': ComplexFeed,
|
|
|
|
'rss': TestRssFeed,
|
|
|
|
'atom': TestAtomFeed,
|
2008-08-11 22:22:26 +00:00
|
|
|
'custom': TestCustomFeed,
|
2008-08-11 20:49:19 +00:00
|
|
|
|
|
|
|
}
|
2008-03-20 06:35:53 +00:00
|
|
|
urlpatterns = patterns('',
|
2008-08-11 20:49:19 +00:00
|
|
|
(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feed_dict})
|
2008-03-20 06:35:53 +00:00
|
|
|
)
|