PageRenderTime 47ms CodeModel.GetById 44ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/syndication/urls.py

https://code.google.com/p/mango-py/
Python | 24 lines | 20 code | 4 blank | 0 comment | 0 complexity | e104267ee50c64d54bf9ca47a60f4887 MD5 | raw file
 1from django.conf.urls.defaults import *
 2
 3import feeds
 4
 5feed_dict = {
 6    'complex': feeds.DeprecatedComplexFeed,
 7    'rss': feeds.DeprecatedRssFeed,
 8}
 9
10urlpatterns = patterns('django.contrib.syndication.views',
11    (r'^complex/(?P<foo>.*)/$', feeds.ComplexFeed()),
12    (r'^rss2/$', feeds.TestRss2Feed()),
13    (r'^rss091/$', feeds.TestRss091Feed()),
14    (r'^atom/$', feeds.TestAtomFeed()),
15    (r'^custom/$', feeds.TestCustomFeed()),
16    (r'^naive-dates/$', feeds.NaiveDatesFeed()),
17    (r'^aware-dates/$', feeds.TZAwareDatesFeed()),
18    (r'^feedurl/$', feeds.TestFeedUrlFeed()),
19    (r'^articles/$', feeds.ArticlesFeed()),
20    (r'^template/$', feeds.TemplateFeed()),
21
22    (r'^depr-feeds/(?P<url>.*)/$', 'feed', {'feed_dict': feed_dict}),
23    (r'^depr-feeds-empty/(?P<url>.*)/$', 'feed', {'feed_dict': None}),
24)