mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23276 -- Deprecated passing views as strings to url().
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^noslash$', 'middleware.views.empty_view'),
|
||||
url(r'^slash/$', 'middleware.views.empty_view'),
|
||||
url(r'^needsquoting#/$', 'middleware.views.empty_view'),
|
||||
url(r'^noslash$', views.empty_view),
|
||||
url(r'^slash/$', views.empty_view),
|
||||
url(r'^needsquoting#/$', views.empty_view),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user