Debian Codegraph @

tests/test_client/urls.py

raw
1 from django.contrib.auth import views as auth_views
2 from django.urls import path
3 from django.views.generic import RedirectView
4
5 from . import views
6
7 urlpatterns = [
8 path("upload_view/", views.upload_view, name="upload_view"),
9 path("get_view/", views.get_view, name="get_view"),
10 path("cbv_view/", views.CBView.as_view()),
11 path("post_view/", views.post_view),
12 path("post_then_get_view/", views.post_then_get_view),
13 path("put_view/", views.put_view),
14 path("trace_view/", views.trace_view),
15 path("header_view/", views.view_with_header),
16 path("raw_post_view/", views.raw_post_view),
17 path("redirect_view/", views.redirect_view),
18 path("redirect_view_307/", views.method_saving_307_redirect_view),
19 path(
20 "redirect_view_307_query_string/",
21 views.method_saving_307_redirect_query_string_view,
22 ),
23 path("redirect_view_308/", views.method_saving_308_redirect_view),
24 path(
25 "redirect_view_308_query_string/",
26 views.method_saving_308_redirect_query_string_view,
27 ),
28 path(
29 "redirect_to_different_hostname/",
30 views.redirect_to_different_hostname,
31 name="redirect_to_different_hostname",
32 ),
33 path("get_host_view/", views.get_host_view, name="get_host_view"),
34 path("secure_view/", views.view_with_secure),
35 path(
36 "permanent_redirect_view/",
37 RedirectView.as_view(url="/get_view/", permanent=True),
38 ),
39 path(
40 "temporary_redirect_view/",
41 RedirectView.as_view(url="/get_view/", permanent=False),
42 ),
43 path("http_redirect_view/", RedirectView.as_view(url="/secure_view/")),
44 path(
45 "https_redirect_view/",
46 RedirectView.as_view(url="https://testserver/secure_view/"),
47 ),
48 path("double_redirect_view/", views.double_redirect_view),
49 path("bad_view/", views.bad_view),
50 path("form_view/", views.form_view),
51 path("form_view_with_template/", views.form_view_with_template),
52 path("json_view/", views.json_view),
53 path("login_protected_view/", views.login_protected_view),
54 path("login_protected_method_view/", views.login_protected_method_view),
55 path(
56 "login_protected_view_custom_redirect/",
57 views.login_protected_view_changed_redirect,
58 ),
59 path("permission_protected_view/", views.permission_protected_view),
60 path(
61 "permission_protected_view_exception/",
62 views.permission_protected_view_exception,
63 ),
64 path("permission_protected_method_view/", views.permission_protected_method_view),
65 path("session_view/", views.session_view),
66 path("broken_view/", views.broken_view),
67 path("mail_sending_view/", views.mail_sending_view),
68 path("mass_mail_sending_view/", views.mass_mail_sending_view),
69 path("nesting_exception_view/", views.nesting_exception_view),
70 path("django_project_redirect/", views.django_project_redirect),
71 path(
72 "no_trailing_slash_external_redirect/",
73 views.no_trailing_slash_external_redirect,
74 ),
75 path(
76 "", views.index_view, name="index"
77 ), # Target for no_trailing_slash_external_redirect/ with follow=True
78 path("two_arg_exception/", views.two_arg_exception),
79 path("accounts/", RedirectView.as_view(url="login/")),
80 path("accounts/no_trailing_slash", RedirectView.as_view(url="login/")),
81 path("accounts/login/", auth_views.LoginView.as_view(template_name="login.html")),
82 path("accounts/logout/", auth_views.LogoutView.as_view()),
83 # Async views.
84 path("async_get_view/", views.async_get_view, name="async_get_view"),
85 ]