Hi, I've used a similar approach once - works fine. Although, you might want to sacrifice such a short url for something that is easier to read/understand that 'u' and 'g'.
Cheers, Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/3/15 ldm999 <malcolm.le...@gmail.com> > > I'm using Django Auth and would like to include username in my urls. > So, eg, I might have urls like the following: > > - mysite.com/tom/books/moby-dick > - mysite.com/dick/books/moby-dick > - mysite.com/harry/books/catch-22 > > To further complicate things, I'd like to support groups too. So that > first url param could be a group name (eg seattle-reading-club) > > So now I'm thinking of using a letter to designate if the url is for a > user or a group. Something like: > > - mysite.com/u/tom/books/moby-dick > - mysite.com/g/seattle-reading-group/moby-dick > > Anyone else done something like this? Any problems with this approach? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---