Merged the tests and documentation from #4720 to support the changes in [7295].
[django.git] / tests / regressiontests / syndication / urls.py
blob24644ffd53c101909e2d161968a3459837eb720c
1 from django.conf.urls.defaults import patterns
2 from django.core.exceptions import ObjectDoesNotExist
3 from django.contrib.syndication import feeds
6 class ComplexFeed(feeds.Feed):
7 def get_object(self, bits):
8 if len(bits) != 1:
9 raise ObjectDoesNotExist
10 return None
13 urlpatterns = patterns('',
14 (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {
15 'feed_dict': dict(
16 complex = ComplexFeed,
17 )}),