mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #28766 -- Added ResolverMatch.route.
Co-Authored-By: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
This commit is contained in:
parent
ad191d9e01
commit
79c196cfb2
8 changed files with 65 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
from django.conf.urls import include
|
||||
from django.urls import path
|
||||
from django.urls import path, re_path
|
||||
|
||||
from . import views
|
||||
|
||||
|
@ -11,5 +11,7 @@ urlpatterns = [
|
|||
path('users/', views.empty_view, name='users'),
|
||||
path('users/<id>/', views.empty_view, name='user-with-id'),
|
||||
path('included_urls/', include('urlpatterns.included_urls')),
|
||||
re_path(r'^regex/(?P<pk>[0-9]+)/$', views.empty_view, name='regex'),
|
||||
path('', include('urlpatterns.more_urls')),
|
||||
path('<lang>/<path:url>/', views.empty_view, name='lang-and-path'),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue