mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Updated test URL patterns to use path() and re_path().
This commit is contained in:
parent
1136d57f01
commit
043bd70942
104 changed files with 692 additions and 673 deletions
|
@ -1,13 +1,12 @@
|
|||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^innocent/$', views.innocent),
|
||||
path('innocent/', views.innocent),
|
||||
path('redirect/', views.redirect),
|
||||
url(r'^suspicious/$', views.suspicious),
|
||||
url(r'^suspicious_spec/$', views.suspicious_spec),
|
||||
path('suspicious/', views.suspicious),
|
||||
path('suspicious_spec/', views.suspicious_spec),
|
||||
path('internal_server_error/', views.internal_server_error),
|
||||
path('uncaught_exception/', views.uncaught_exception),
|
||||
path('permission_denied/', views.permission_denied),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.conf.urls import url
|
||||
from django.conf.urls.i18n import i18n_patterns
|
||||
from django.http import HttpResponse
|
||||
from django.urls import path
|
||||
|
||||
urlpatterns = i18n_patterns(
|
||||
url(r'^exists/$', lambda r: HttpResponse()),
|
||||
path('exists/', lambda r: HttpResponse()),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue