django/tests/check_framework/urls_slash.py

14 lines
226 B
Python
Raw Normal View History

from django.conf.urls import include, url
from django.http import HttpResponse
def view(request):
return HttpResponse('')
urlpatterns = [
url('^', include([
url(r'/starting-with-slash/$', view),
])),
]