2010-01-28 21:46:18 +08:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
2009-04-08 05:20:14 +08:00
|
|
|
import feeds
|
2008-03-20 14:35:53 +08:00
|
|
|
|
2008-08-12 04:49:19 +08:00
|
|
|
feed_dict = {
|
2010-01-28 21:46:18 +08:00
|
|
|
'complex': feeds.DeprecatedComplexFeed,
|
|
|
|
'rss': feeds.DeprecatedRssFeed,
|
2008-08-12 04:49:19 +08:00
|
|
|
}
|
2010-01-28 21:46:18 +08:00
|
|
|
|
|
|
|
urlpatterns = patterns('django.contrib.syndication.views',
|
|
|
|
(r'^complex/(?P<foo>.*)/$', feeds.ComplexFeed()),
|
|
|
|
(r'^rss2/$', feeds.TestRss2Feed()),
|
|
|
|
(r'^rss091/$', feeds.TestRss091Feed()),
|
|
|
|
(r'^atom/$', feeds.TestAtomFeed()),
|
|
|
|
(r'^custom/$', feeds.TestCustomFeed()),
|
|
|
|
(r'^naive-dates/$', feeds.NaiveDatesFeed()),
|
|
|
|
(r'^aware-dates/$', feeds.TZAwareDatesFeed()),
|
|
|
|
(r'^feedurl/$', feeds.TestFeedUrlFeed()),
|
|
|
|
(r'^articles/$', feeds.ArticlesFeed()),
|
|
|
|
(r'^template/$', feeds.TemplateFeed()),
|
|
|
|
|
|
|
|
(r'^depr-feeds/(?P<url>.*)/$', 'feed', {'feed_dict': feed_dict}),
|
|
|
|
(r'^depr-feeds-empty/(?P<url>.*)/$', 'feed', {'feed_dict': None}),
|
2008-03-20 14:35:53 +08:00
|
|
|
)
|