On Sat, Sep 12, 2009 at 6:19 PM, Ivan Sagalaev <man...@softwaremaniacs.org> wrote: >> In the rare cases when I do need to split a URL into parts I just use >> urlsplit: >> >> schema, domain, path, query, fragment = urlsplit(obj.url())
That's not in any way intitutive for a new user in the way that `obj.url().schema` is. > Oh... And for template authors we could just make 5 filters returning > those parts: > > {{ obj.url|domain }} So we need *five* new built-in filters instead of `{{ obj.url.domain }}`? Why? What if I want to access the username or password? Do we "just" add two more filters? Ugh. Jacob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---