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 inner
> view), rather than being passed to your outer view, as you would like.

yes. When a url pattern like 'reservations/(\w*)/?$'

comes before this 'ue/(\d+)/reservations/?(\w*)/?$' it matches first.


Thanks a lot again,

Frédéric







-- 
http://www.openidfrance.fr/fhebert

--~--~---------~--~----~------------~-------~--~----~
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