2018-12-07 17:52:28 -05:00
|
|
|
from django.urls import path, re_path
|
2007-12-02 23:25:55 +00:00
|
|
|
|
2014-08-12 10:54:42 -04:00
|
|
|
from . import views
|
|
|
|
|
2014-04-01 20:46:34 -04:00
|
|
|
urlpatterns = [
|
2018-12-07 17:52:28 -05:00
|
|
|
path("noslash", views.empty_view),
|
|
|
|
path("slash/", views.empty_view),
|
|
|
|
path("needsquoting#/", views.empty_view),
|
2018-07-24 16:18:17 -04:00
|
|
|
# Accepts paths with two leading slashes.
|
2018-12-07 17:52:28 -05: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-01 20:46:34 -04:00
|
|
|
]
|