Jeff Croft

I’m a product designer in Seattle, WA. I recently worked at Simply Measured, and previously co-founded Lendle.

Some of my past clients include Facebook, Microsoft, Yahoo, and the University of Washington.

I’ve authored two books on web and interactive design and spoken at dozens of conferences around the world.

I’m currently accepting contract work and considering full-time opportunities.

Filter content

Items tagged django

  • Blog entry // 11.10.2008 // 7:44 AM // 39 Comments

    Django’s URL template tag sucks

    I don’t like Django’s {% url %} template tag, and I’m about to tell you why. But first, let’s have a little history lesson so we understand why the {% url %} tag exists and what problem it attempts to solve.

    I’ve been involved in Django since the .90 release, or nearly three years. As long as I’ve been working with Django, there’s been a convention which basically says that any model whose instances are represented by a page on the site should get a method called get_absolute_url, which returns the relative URL to that instance’s page (for now, please ignore the fact that get_absolute_url is misnamed and actually returns a URL relative to the root of the site).

    In the early days, the get_absolute_url method for a blog entry might have looked like this…

By content type
Other tags in these items