summaryrefslogtreecommitdiff
path: root/tests/check_framework/urls/beginning_with_slash.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_framework/urls/beginning_with_slash.py')
-rw-r--r--tests/check_framework/urls/beginning_with_slash.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check_framework/urls/beginning_with_slash.py b/tests/check_framework/urls/beginning_with_slash.py
index 736e91820e..8dac96745c 100644
--- a/tests/check_framework/urls/beginning_with_slash.py
+++ b/tests/check_framework/urls/beginning_with_slash.py
@@ -1,5 +1,7 @@
from django.conf.urls import url
+from django.urls import path
urlpatterns = [
- url(r'/starting-with-slash/$', lambda x: x),
+ path('/path-starting-with-slash/', lambda x: x),
+ url(r'/url-starting-with-slash/$', lambda x: x),
]