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