1 Debian patch touch this file
| •1 | from django.urls import re_path |
| 2 | |
| 3 | def testview(request): |
| 4 | return 'foo' |
| 5 | |
| 6 | urlpatterns = [ |
| •7 | re_path(r'named-url', lambda: 'foo', name='named_url'), |
| 8 | re_path(r'named-with-params/(?P<pk>\d+)/', lambda: 'foo', name='named_with_params'), |
| 9 | re_path(r'known-view', testview, name='known_view'), |
| 10 | re_path(r'', lambda: 'foo'), |
| 11 | ] |