2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import path, re_path
|
2007-12-02 23:25:55 +00:00
|
|
|
|
2014-08-12 14:54:42 +00:00
|
|
|
from . import views
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
2022-02-03 19:24:19 +00:00
|
|
|
path("noslash", views.empty_view),
|
|
|
|
path("slash/", views.empty_view),
|
|
|
|
path("needsquoting#/", views.empty_view),
|
2018-07-24 20:18:17 +00:00
|
|
|
# Accepts paths with two leading slashes.
|
2022-02-03 19:24:19 +00:00
|
|
|
re_path(r"^(.+)/security/$", views.empty_view),
|
2020-10-20 07:14:48 +00:00
|
|
|
# Should not append slash.
|
2022-02-03 19:24:19 +00:00
|
|
|
path("sensitive_fbv/", views.sensitive_fbv),
|
|
|
|
path("sensitive_cbv/", views.SensitiveCBV.as_view()),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|