On Jul 13, 8:48 am, Frédéric Hébert <fg.heb...@gmail.com> 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/hold/66588/
>
> It's maybe a very stupid problem but I can't see why this happens.

It looks like the regular expressions for your urls aren't anchored to
the beginning of the string.

In your 'bad' situation, a url like "ue/reservations/xyz" gets matched
by the first regex, and passed to view_list_reservation (your inner
view), rather than being passed to your outer view, as you would like.

Try adding a '^' character to the front of your regular expressions,
and see if the requests are passed to the proper views.

Ian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to