> About the only way to do that is just grab (.*) from the url, and
> parse it in your view, looking up slugs as needed
Collin's suggestion may sound daunting, but it's really quite easy:
your urls.py can have something like
r"^(?P<path>(?:[-\w]+/)*[-\w]+)/?$"
and then in your view:
def my_view(request, path):
# iterate from grandparent -> parent -> child -> grandchild
for piece in path.split('/'):
do_something(piece)
Not too scary and rather easy to understand (except perhaps for
the regexp, but that's another matter).
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---