Updated test URL patterns to use path() and re_path().

This commit is contained in:
Tim Graham 2018-12-07 17:52:28 -05:00
parent 1136d57f01
commit 043bd70942
104 changed files with 692 additions and 673 deletions

View file

@ -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),
]