Lonely Lion

Chris McAvoy likes kites

B-List Django Template Utilities

with 2 comments

James Bennett released some pretty nifty Django template utilities today, as a collection of template tags. At a glance, there’s some useful stuff in there. One of my favorites: {% get_latest_object [app_name].[model_name] as [varname] %}. I can see myself using that one a lot. Also pretty cool: {% get_random_object [app_name].[model_name] as [varname] %}.

Thanks James.

Written by Chris

April 12th, 2007 at 8:26 am

Posted in Python

2 Responses to 'B-List Django Template Utilities'

Subscribe to comments with RSS or TrackBack to 'B-List Django Template Utilities'.

  1. Now I have a name to go with the #django irc nickname!
    I have been reading your blog for a while and chatting with you in IRC and never made the connection. Wierd.

    Thanks for this ubernostrum! Fantastic work!

    -dougn ;-)

    Doug Napoleone

    12 Apr 07 at 10:03 am

  2. @Doug,

    Just to be clear, I’m not ubernostrum, nor am I James Bennett, nor am I b-list.

    I’m a fan, just like you.

    Chris McAvoy

    12 Apr 07 at 10:17 am

Leave a Reply