Debian Codegraph @

tests/middleware/urls.py

raw
1 from django.urls import path, re_path
2
3 from . import views
4
5 urlpatterns = [
6 path("noslash", views.empty_view),
7 path("slash/", views.empty_view),
8 path("needsquoting#/", views.empty_view),
9 # Accepts paths with two leading slashes.
10 re_path(r"^(.+)/security/$", views.empty_view),
11 # Should not append slash.
12 path("sensitive_fbv/", views.sensitive_fbv),
13 path("sensitive_cbv/", views.SensitiveCBV.as_view()),
14 ]