Re: urlconf for multiple page slugs

2007-08-10 Thread Peter Baumgartner
> > > Collin's suggestion may sound daunting, but it's really quite easy: Thanks guys. I took your advice. Here is my solution: http://www.djangosnippets.org/snippets/362/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: urlconf for multiple page slugs

2007-08-10 Thread Tim Chase
> 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(?:[-\w]+/)*[-\w]+)/?$" and then in your view: def

Re: urlconf for multiple page slugs

2007-08-10 Thread Collin Grady
About the only way to do that is just grab (.*) from the url, and parse it in your view, looking up slugs as needed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

urlconf for multiple page slugs

2007-08-10 Thread Peter Baumgartner
I'm building a site where pages can have parent pages in the form: * Grandparent 1 * Grandparent 2 ** Parent 1 *** Child 1 *** Child 2 ** Parent 2 I'd like the url to contain each parent. For example, 'child 2' would be at /grandparent-2/parent-1/child-2/ I'm not sure how to implement this in