[Resolved] Re: Nested views and urls patterns declaration order

2009-07-13 Thread Frédéric Hébert
Hi, > Try adding a '^' character to the front of your regular expressions, > and see if the requests are passed to the proper views. thanks a lot, it works. > In your 'bad' situation, a url like "ue/reservations/xyz" gets matched > by the first regex, and passed to view_list_reservation (your i

Re: Nested views and urls patterns declaration order

2009-07-13 Thread Ian Clelland
On Jul 13, 8:48 am, Frédéric Hébert wrote: > When I declare the outter view after the inner in urls.py she's never > been called. It's the inner that's got it. > (She's called when I reverse the order of declaration, eg the outter > first) > >  I've pasted the code at dpaste :http://dpaste.com/

Re: Nested views and urls patterns declaration order

2009-07-13 Thread Karen Tracey
2009/7/13 Frédéric Hébert > > Hi there, > > first, here is my config: > python 2.5.2 > django 1.0.2 > plateforme linux debian lenny > > I've two nested views, the inner of two using the list_detail.list > generic view. > The outter define a QuerySet and passes it to the inner view. > > When I

Nested views and urls patterns declaration order

2009-07-13 Thread Frédéric Hébert
Hi there, first, here is my config: python 2.5.2 django 1.0.2 plateforme linux debian lenny I've two nested views, the inner of two using the list_detail.list generic view. The outter define a QuerySet and passes it to the inner view. When I declare the outter view after the inner in urls.p