On Sunday, July 11, 2010, Phui Hock <phuih...@gmail.com> wrote: > 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? >
The problem you are describing is ticket #11559. At least at the moment, it's not supported behavior. The ticket contains a discussion of the complications associated with the idea. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.