Hi,
It seems that if I split a URL with unnamed capturing groups into
different urls.py files, urlresolvers.reverse(..) doesn't work as
expected. For example:

--- root urls.py ---
(r'^foo/(.*)/', include('foo.urls'))

--- foo/urls.py ---
url('^(.*)/$', blackhole, name='foo_1')

When I do urlresolvers.reverse('foo_1', args=["1", "2"], I'd expect /
foo/1/2/. However, the actual result is /foo/2/2/. Is that not
supported, or am I doing something totally wrong here? Named capturing
group is the only way to go?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to