File: urls.py

package info (click to toggle)
python-django 3%3A5.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 61,236 kB
  • sloc: python: 361,585; javascript: 19,250; xml: 211; makefile: 182; sh: 28
file content (49 lines) | stat: -rw-r--r-- 2,065 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from django.urls import path

from . import feeds

urlpatterns = [
    path("syndication/rss2/", feeds.TestRss2Feed()),
    path(
        "syndication/rss2/with-callable-object/", feeds.TestRss2FeedWithCallableObject()
    ),
    path(
        "syndication/rss2/with-decorated-methods/",
        feeds.TestRss2FeedWithDecoratedMethod(),
    ),
    path(
        "syndication/rss2/with-wrong-decorated-methods/",
        feeds.TestRss2FeedWithWrongDecoratedMethod(),
    ),
    path("syndication/rss2/articles/<int:entry_id>/", feeds.TestGetObjectFeed()),
    path(
        "syndication/rss2/guid_ispermalink_true/",
        feeds.TestRss2FeedWithGuidIsPermaLinkTrue(),
    ),
    path(
        "syndication/rss2/guid_ispermalink_false/",
        feeds.TestRss2FeedWithGuidIsPermaLinkFalse(),
    ),
    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()),
    path("syndication/language/", feeds.TestLanguageFeed()),
    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()),
    path("syndication/stylesheet/", feeds.TestFeedWithStylesheets()),
    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()),
    path(
        "syndication/stylesheet.xsl",
        lambda request: None,
        name="syndication-xsl-stylesheet",
    ),
]