Re: Dynamic parameters in django URLs

2011-09-29 Thread Piotr Zalewa
On 09/29/11 11:36, Dejan Noveski wrote: Hi, I want to add dynamic urls to my site for faceting purposes. E.g: /(type)/(subtype)/(category)/ But I also want something like this to work: /(type)/(subtype)/ or /(type)/(category)/ or /(subtype)/(category)/ or just /(category)/ | /(type)/ | /(subtype

Re: Dynamic parameters in django URLs

2011-09-29 Thread Ilian Iliev
I had the same case a while ago but I decided always to keep all the params, and fill them with 'all' if empty i.e. /type/ redirects to /type/all/all/ /type/subtype/ redirects to type/subtupe/all Otherwise if you are absolute sure that it is inpossible for type,subtype and category to mach you ma

Dynamic parameters in django URLs

2011-09-29 Thread Dejan Noveski
Hi, I want to add dynamic urls to my site for faceting purposes. E.g: /(type)/(subtype)/(category)/ But I also want something like this to work: /(type)/(subtype)/ or /(type)/(category)/ or /(subtype)/(category)/ or just /(category)/ | /(type)/ | /(subtype)/ Is there any clean way of doing this w