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