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:
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
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.
> 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
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_]+)/)+$', '
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
6 matches
Mail list logo