Debian Codegraph @

tests/test_client_regress/urls.py

raw
1 from django.urls import include, path
2 from django.views.generic import RedirectView
3
4 from . import views
5
6 urlpatterns = [
7 path("", include("test_client.urls")),
8 path("no_template_view/", views.no_template_view),
9 path("staff_only/", views.staff_only_view),
10 path("get_view/", views.get_view),
11 path("request_data/", views.request_data),
12 path(
13 "request_data_extended/",
14 views.request_data,
15 {"template": "extended.html", "data": "bacon"},
16 ),
17 path("arg_view/<name>/", views.view_with_argument, name="arg_view"),
18 path("nested_view/", views.nested_view, name="nested_view"),
19 path("login_protected_redirect_view/", views.login_protected_redirect_view),
20 path("redirects/", RedirectView.as_view(url="/redirects/further/")),
21 path("redirects/further/", RedirectView.as_view(url="/redirects/further/more/")),
22 path("redirects/further/more/", RedirectView.as_view(url="/no_template_view/")),
23 path(
24 "redirect_to_non_existent_view/",
25 RedirectView.as_view(url="/non_existent_view/"),
26 ),
27 path(
28 "redirect_to_non_existent_view2/",
29 RedirectView.as_view(url="/redirect_to_non_existent_view/"),
30 ),
31 path("redirect_to_self/", RedirectView.as_view(url="/redirect_to_self/")),
32 path(
33 "redirect_to_self_with_changing_query_view/",
34 views.redirect_to_self_with_changing_query_view,
35 ),
36 path("circular_redirect_1/", RedirectView.as_view(url="/circular_redirect_2/")),
37 path("circular_redirect_2/", RedirectView.as_view(url="/circular_redirect_3/")),
38 path("circular_redirect_3/", RedirectView.as_view(url="/circular_redirect_1/")),
39 path(
40 "redirect_other_host/",
41 RedirectView.as_view(url="https://otherserver:8443/no_template_view/"),
42 ),
43 path(
44 "redirect_based_on_extra_headers_1/",
45 views.redirect_based_on_extra_headers_1_view,
46 ),
47 path(
48 "redirect_based_on_extra_headers_2/",
49 views.redirect_based_on_extra_headers_2_view,
50 ),
51 path("set_session/", views.set_session_view),
52 path("check_session/", views.check_session_view),
53 path("request_methods/", views.request_methods_view),
54 path("check_unicode/", views.return_unicode),
55 path("check_binary/", views.return_undecodable_binary),
56 path("json_response/", views.return_json_response),
57 path("json_response_latin1/", views.return_json_response_latin1),
58 path("parse_encoded_text/", views.return_text_file),
59 path("check_headers/", views.check_headers),
60 path("check_headers_redirect/", RedirectView.as_view(url="/check_headers/")),
61 path("body/", views.body),
62 path("read_all/", views.read_all),
63 path("read_buffer/", views.read_buffer),
64 path("request_context_view/", views.request_context_view),
65 path("render_template_multiple_times/", views.render_template_multiple_times),
66 ]