summaryrefslogtreecommitdiff
path: root/tests/wsgi
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-07 17:52:28 -0500
committerTim Graham <timograham@gmail.com>2018-12-31 10:47:32 -0500
commit043bd709425149b8eff3fb821cba5c23aaebd0df (patch)
tree7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/wsgi
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
downloaddjango-043bd709425149b8eff3fb821cba5c23aaebd0df.tar.gz
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/wsgi')
-rw-r--r--tests/wsgi/urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/wsgi/urls.py b/tests/wsgi/urls.py
index 6d4a3b6b4a..57e1ebf01c 100644
--- a/tests/wsgi/urls.py
+++ b/tests/wsgi/urls.py
@@ -1,5 +1,5 @@
-from django.conf.urls import url
from django.http import FileResponse, HttpResponse
+from django.urls import path
def helloworld(request):
@@ -7,6 +7,6 @@ def helloworld(request):
urlpatterns = [
- url("^$", helloworld),
- url(r'^file/$', lambda x: FileResponse(open(__file__, 'rb'))),
+ path('', helloworld),
+ path('file/', lambda x: FileResponse(open(__file__, 'rb'))),
]