diff options
author | Tim Graham <timograham@gmail.com> | 2014-04-01 20:46:34 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2014-04-03 07:28:10 -0400 |
commit | d73d0e071c1b4c86d57994a0ab55a74cfe80cdf5 (patch) | |
tree | f36eebaf1cdd8bd07503b3a538e7d875ff8d29b4 /tests/syndication_tests | |
parent | e6ced2bb086396b57601d04ad5b3ba347d1eb785 (diff) | |
download | django-d73d0e071c1b4c86d57994a0ab55a74cfe80cdf5.tar.gz |
Fixed #22218 -- Deprecated django.conf.urls.patterns.
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r-- | tests/syndication_tests/urls.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/syndication_tests/urls.py b/tests/syndication_tests/urls.py index 1b5d77f2e1..3e50c098b0 100644 --- a/tests/syndication_tests/urls.py +++ b/tests/syndication_tests/urls.py @@ -1,24 +1,24 @@ -from django.conf.urls import patterns +from django.conf.urls import url from . import feeds -urlpatterns = patterns('django.contrib.syndication.views', - (r'^syndication/complex/(?P<foo>.*)/$', feeds.ComplexFeed()), - (r'^syndication/rss2/$', feeds.TestRss2Feed()), - (r'^syndication/rss2/guid_ispermalink_true/$', +urlpatterns = [ + url(r'^syndication/complex/(?P<foo>.*)/$', feeds.ComplexFeed()), + url(r'^syndication/rss2/$', feeds.TestRss2Feed()), + url(r'^syndication/rss2/guid_ispermalink_true/$', feeds.TestRss2FeedWithGuidIsPermaLinkTrue()), - (r'^syndication/rss2/guid_ispermalink_false/$', + url(r'^syndication/rss2/guid_ispermalink_false/$', feeds.TestRss2FeedWithGuidIsPermaLinkFalse()), - (r'^syndication/rss091/$', feeds.TestRss091Feed()), - (r'^syndication/no_pubdate/$', feeds.TestNoPubdateFeed()), - (r'^syndication/atom/$', feeds.TestAtomFeed()), - (r'^syndication/latest/$', feeds.TestLatestFeed()), - (r'^syndication/custom/$', feeds.TestCustomFeed()), - (r'^syndication/naive-dates/$', feeds.NaiveDatesFeed()), - (r'^syndication/aware-dates/$', feeds.TZAwareDatesFeed()), - (r'^syndication/feedurl/$', feeds.TestFeedUrlFeed()), - (r'^syndication/articles/$', feeds.ArticlesFeed()), - (r'^syndication/template/$', feeds.TemplateFeed()), - (r'^syndication/template_context/$', feeds.TemplateContextFeed()), -) + url(r'^syndication/rss091/$', feeds.TestRss091Feed()), + url(r'^syndication/no_pubdate/$', feeds.TestNoPubdateFeed()), + url(r'^syndication/atom/$', feeds.TestAtomFeed()), + url(r'^syndication/latest/$', feeds.TestLatestFeed()), + url(r'^syndication/custom/$', feeds.TestCustomFeed()), + url(r'^syndication/naive-dates/$', feeds.NaiveDatesFeed()), + url(r'^syndication/aware-dates/$', feeds.TZAwareDatesFeed()), + url(r'^syndication/feedurl/$', feeds.TestFeedUrlFeed()), + url(r'^syndication/articles/$', feeds.ArticlesFeed()), + url(r'^syndication/template/$', feeds.TemplateFeed()), + url(r'^syndication/template_context/$', feeds.TemplateContextFeed()), +] |