Chicago Django/Python Blog - Imaginary Landscape

Django Template Tags

October 26, 2009 2:45 p.m.

It seems like I frequently find myself needing to write template tags for the various projects I work on here at Imaginary Landscape. The most common reason is generally so that I can adhere to the ideas of the DRY principle. For instance, YaBa has the potential to craft a rather lengthy sidebar with Twitter updates, GitHub activity, links, categories and archives, all of which are dynamic content. To make it more problematic, that side bar is in every single view. In order to accomplish that without template tags, I'd need to return objects for each of those in ...

Read More


Updated 10/26/09 @ 02:45PM CDT by markr

Bookmark and Share

Categories: Django

Tags: django github templatetags


(877) 275-9144 Toll Free | M-F:9-5

Imaginary Landscape, LLC 5121 North Ravenswood Avenue Chicago, Illinois 60640