mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Added the ability to name URL patterns. Helps with disambiguity reverse matches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a071609a70
commit
d882656ea3
5 changed files with 83 additions and 17 deletions
|
@ -7,4 +7,5 @@ urlpatterns = patterns('',
|
|||
(r'^$', views.index),
|
||||
(r'^client/(\d+)/$', views.client),
|
||||
(r'^client/(\d+)/(?P<action>[^/]+)/$', views.client_action),
|
||||
url(r'^named-client/(\d+)/$', views.client, name="named-client"),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue