urls.py 437 B

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