mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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,14 +1,14 @@
|
|||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url('^condition/$', views.index),
|
||||
url('^condition/last_modified/$', views.last_modified_view1),
|
||||
url('^condition/last_modified2/$', views.last_modified_view2),
|
||||
url('^condition/etag/$', views.etag_view1),
|
||||
url('^condition/etag2/$', views.etag_view2),
|
||||
url('^condition/unquoted_etag/$', views.etag_view_unquoted),
|
||||
url('^condition/weak_etag/$', views.etag_view_weak),
|
||||
url('^condition/no_etag/$', views.etag_view_none),
|
||||
path('condition/', views.index),
|
||||
path('condition/last_modified/', views.last_modified_view1),
|
||||
path('condition/last_modified2/', views.last_modified_view2),
|
||||
path('condition/etag/', views.etag_view1),
|
||||
path('condition/etag2/', views.etag_view2),
|
||||
path('condition/unquoted_etag/', views.etag_view_unquoted),
|
||||
path('condition/weak_etag/', views.etag_view_weak),
|
||||
path('condition/no_etag/', views.etag_view_none),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue