2018-12-08 06:52:28 +08:00
|
|
|
from django.urls import path
|
2010-01-28 21:46:18 +08:00
|
|
|
|
2011-10-14 05:34:56 +08:00
|
|
|
from . import feeds
|
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
urlpatterns = [
|
2018-12-08 06:52:28 +08:00
|
|
|
path("syndication/rss2/", feeds.TestRss2Feed()),
|
2022-05-23 05:15:11 +08:00
|
|
|
path(
|
|
|
|
"syndication/rss2/with-callable-object/", feeds.TestRss2FeedWithCallableObject()
|
|
|
|
),
|
2022-05-02 11:20:00 +08:00
|
|
|
path(
|
|
|
|
"syndication/rss2/with-decorated-methods/",
|
|
|
|
feeds.TestRss2FeedWithDecoratedMethod(),
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"syndication/rss2/with-wrong-decorated-methods/",
|
|
|
|
feeds.TestRss2FeedWithWrongDecoratedMethod(),
|
|
|
|
),
|
2020-10-13 09:53:49 +08:00
|
|
|
path("syndication/rss2/articles/<int:entry_id>/", feeds.TestGetObjectFeed()),
|
2018-12-08 06:52:28 +08:00
|
|
|
path(
|
|
|
|
"syndication/rss2/guid_ispermalink_true/",
|
2013-02-06 18:25:35 +08:00
|
|
|
feeds.TestRss2FeedWithGuidIsPermaLinkTrue(),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2018-12-08 06:52:28 +08:00
|
|
|
path(
|
|
|
|
"syndication/rss2/guid_ispermalink_false/",
|
2013-02-06 18:25:35 +08:00
|
|
|
feeds.TestRss2FeedWithGuidIsPermaLinkFalse(),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2018-12-08 06:52:28 +08:00
|
|
|
path("syndication/rss091/", feeds.TestRss091Feed()),
|
|
|
|
path("syndication/no_pubdate/", feeds.TestNoPubdateFeed()),
|
|
|
|
path("syndication/atom/", feeds.TestAtomFeed()),
|
|
|
|
path("syndication/latest/", feeds.TestLatestFeed()),
|
|
|
|
path("syndication/custom/", feeds.TestCustomFeed()),
|
2019-04-11 05:48:58 +08:00
|
|
|
path("syndication/language/", feeds.TestLanguageFeed()),
|
2018-12-08 06:52:28 +08:00
|
|
|
path("syndication/naive-dates/", feeds.NaiveDatesFeed()),
|
|
|
|
path("syndication/aware-dates/", feeds.TZAwareDatesFeed()),
|
|
|
|
path("syndication/feedurl/", feeds.TestFeedUrlFeed()),
|
|
|
|
path("syndication/articles/", feeds.ArticlesFeed()),
|
|
|
|
path("syndication/template/", feeds.TemplateFeed()),
|
|
|
|
path("syndication/template_context/", feeds.TemplateContextFeed()),
|
2024-04-27 04:10:40 +08:00
|
|
|
path("syndication/stylesheet/", feeds.TestFeedWithStylesheets()),
|
2018-12-08 06:52:28 +08:00
|
|
|
path("syndication/rss2/single-enclosure/", feeds.TestSingleEnclosureRSSFeed()),
|
|
|
|
path("syndication/rss2/multiple-enclosure/", feeds.TestMultipleEnclosureRSSFeed()),
|
|
|
|
path("syndication/atom/single-enclosure/", feeds.TestSingleEnclosureAtomFeed()),
|
|
|
|
path("syndication/atom/multiple-enclosure/", feeds.TestMultipleEnclosureAtomFeed()),
|
2024-04-27 04:10:40 +08:00
|
|
|
path(
|
|
|
|
"syndication/stylesheet.xsl",
|
|
|
|
lambda request: None,
|
|
|
|
name="syndication-xsl-stylesheet",
|
|
|
|
),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|