Re: Reversing URL with unnamed capturing groups

2010-07-10 Thread Russell Keith-Magee
On Sunday, July 11, 2010, Phui Hock 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 ---

Reversing URL with unnamed capturing groups

2010-07-10 Thread Phui Hock
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 urlresolv