urls.py 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. from django.urls import path
  2. from . import feeds
  3. urlpatterns = [
  4. path("syndication/rss2/", feeds.TestRss2Feed()),
  5. path(
  6. "syndication/rss2/with-callable-object/", feeds.TestRss2FeedWithCallableObject()
  7. ),
  8. path(
  9. "syndication/rss2/with-decorated-methods/",
  10. feeds.TestRss2FeedWithDecoratedMethod(),
  11. ),
  12. path(
  13. "syndication/rss2/with-wrong-decorated-methods/",
  14. feeds.TestRss2FeedWithWrongDecoratedMethod(),
  15. ),
  16. path("syndication/rss2/articles/<int:entry_id>/", feeds.TestGetObjectFeed()),
  17. path(
  18. "syndication/rss2/guid_ispermalink_true/",
  19. feeds.TestRss2FeedWithGuidIsPermaLinkTrue(),
  20. ),
  21. path(
  22. "syndication/rss2/guid_ispermalink_false/",
  23. feeds.TestRss2FeedWithGuidIsPermaLinkFalse(),
  24. ),
  25. path("syndication/rss091/", feeds.TestRss091Feed()),
  26. path("syndication/no_pubdate/", feeds.TestNoPubdateFeed()),
  27. path("syndication/atom/", feeds.TestAtomFeed()),
  28. path("syndication/latest/", feeds.TestLatestFeed()),
  29. path("syndication/custom/", feeds.TestCustomFeed()),
  30. path("syndication/language/", feeds.TestLanguageFeed()),
  31. path("syndication/naive-dates/", feeds.NaiveDatesFeed()),
  32. path("syndication/aware-dates/", feeds.TZAwareDatesFeed()),
  33. path("syndication/feedurl/", feeds.TestFeedUrlFeed()),
  34. path("syndication/articles/", feeds.ArticlesFeed()),
  35. path("syndication/template/", feeds.TemplateFeed()),
  36. path("syndication/template_context/", feeds.TemplateContextFeed()),
  37. path("syndication/stylesheet/", feeds.TestFeedWithStylesheets()),
  38. path("syndication/rss2/single-enclosure/", feeds.TestSingleEnclosureRSSFeed()),
  39. path("syndication/rss2/multiple-enclosure/", feeds.TestMultipleEnclosureRSSFeed()),
  40. path("syndication/atom/single-enclosure/", feeds.TestSingleEnclosureAtomFeed()),
  41. path("syndication/atom/multiple-enclosure/", feeds.TestMultipleEnclosureAtomFeed()),
  42. path(
  43. "syndication/stylesheet.xsl",
  44. lambda request: None,
  45. name="syndication-xsl-stylesheet",
  46. ),
  47. ]