tests/urlpatterns_reverse/extra_urls.py
raw| 1 | """ |
| 2 | Some extra URL patterns that are included at the top level. |
| 3 | """ |
| 4 | |
| 5 | from django.urls import include, path, re_path |
| 6 | |
| 7 | from .views import empty_view |
| 8 | |
| 9 | urlpatterns = [ |
| 10 | re_path("^e-places/([0-9]+)/$", empty_view, name="extra-places"), |
| 11 | re_path(r"^e-people/(?P<name>\w+)/$", empty_view, name="extra-people"), |
| 12 | path("", include("urlpatterns_reverse.included_urls2")), |
| 13 | re_path(r"^prefix/(?P<prefix>\w+)/", include("urlpatterns_reverse.included_urls2")), |
| 14 | ] |