django1/tests/check_framework/urls/beginning_with_slash.py

8 lines
187 B
Python

from django.conf.urls import url
from django.urls import path
urlpatterns = [
path('/path-starting-with-slash/', lambda x: x),
url(r'/url-starting-with-slash/$', lambda x: x),
]