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