Re: URL Hierarchy on a given page

2012-10-02 Thread creecode
en/dev/topics/http/urls/ > > but I would like to hear any ideas. > > What I'm trying to do is basically give the relevant URL hierarchy for any > page on my website. (That's the best I can put it into words). > > So to try and make my question more clear, some examples:

URL Hierarchy on a given page

2012-10-02 Thread JJ Zolper
Hello everyone, So I was reading this page to try to find a solution: https://docs.djangoproject.com/en/dev/topics/http/urls/ but I would like to hear any ideas. What I'm trying to do is basically give the relevant URL hierarchy for any page on my website. (That's the best I can p

Re: url hierarchy

2005-12-20 Thread Kevin
Yeah, after more experimenting, I came to the same conclusion and globbed the whole path and tokenized the names in the view. Thanks for the help.

Re: url hierarchy

2005-12-20 Thread oggie rob
> Id rather not go to: > r'/albums/(?P\d+)/$' and keep the more readable urls You can still use this format and get readable urls: r'albums/(?P)/$' The album_dir is simply a parameter that is passed to your view function. If you set your regex up you can limit it/adjust it to allow for certa

Re: url hierarchy

2005-12-20 Thread Adrian Holovaty
On 12/20/05, Kevin <[EMAIL PROTECTED]> wrote: > Now, that all works, but I'm trying to figure out how to define my > urlconf so that I can specify urls like a filesystem, eg: > www.mydomain.com/albums/2005/may/fishing_trip/ > > I've tried something similar to: > (r'^/albums/(?:([a-z0-9_]+)/)+$', '

url hierarchy

2005-12-20 Thread Kevin
Hey guys, got myself stumped and I'm hoping you could help me figure this one out. In my code I've got a hierarchical category structure for my model that's intended to roughly analogize a filesystem, eg: class Album(meta.Model): location = meta.SlugField() name = meta.CharField() pa