- Read on Tuesday, August 17, 2010
- Read on Friday, February 26, 2010
-
-
Django Multipart Templated Email
A replacement for sending mail that takes the name of a template which exists in both text and html formats, and uses these to create a multipart email populated with the given context.
Visit
-
Django Multipart Templated Email
- Read on Sunday, July 5, 2009
-
-
Improved sortby template tag
Variation on dictsort using attribute access. Nested attributes can be used, like, "obj.attr.attr_attr"
Visit
-
Improved sortby template tag
- Read on Tuesday, June 2, 2009
-
-
Sometimes Tag
Show part A or part B by chance. Can be useful (replace elements by ads, etc).
Visit
-
Sometimes Tag
- Read on Wednesday, April 1, 2009
-
-
Django snippets: Smart i18n date diff (twitter like)
This snippet display a human readable date diff. You give it the your date in parameter and the diff with datetime.datetime.now() is returned. The diff must be positive to be more accurate (future dates are not supported). Will give something like: less than 1 minute ago 13 minutes ago 1 hour ago etc.
Visit
-
Django snippets: Smart i18n date diff (twitter like)
- Read on Friday, March 6, 2009
-
-
Smart {% if %} template tag
Save this as smart_if.py in the templatetags folder of one of your apps. Then a simple {% load smartif %} replaces the boring built-in Django {% if %} template with the new smart one.
Visit
-
Smart {% if %} template tag
- Read on Tuesday, August 19, 2008
-
-
django_templatecomponents
A django application that makes it easy to organize your component source (JavaScript, CSS) right in your django templates to make your website much faster.
Visit
-
django_templatecomponents
- Read on Friday, July 11, 2008
-
-
Dynamic Django settings context processor
Here's a nice way of easily passing only certain settings variables to the template.
Visit
-
Dynamic Django settings context processor
- Read on Tuesday, July 8, 2008
-
-
Last.fm Charts
This will fetch the Top Artists List for the given username from Last.fm.
Visit
-
Last.fm Charts
- Read on Friday, July 4, 2008
-
-
Django snippets: in_group template filter
Allows you to search if a user belongs to a given group.
Visit
-
Django snippets: in_group template filter
- Read on Tuesday, June 3, 2008
-
-
Making templatetags global to all templates
I found myself putting {%load ... %} in every template that I was writing, so DRY .. I created an app called 'globaltags' and in its __init__.py, I just pre-load the tags that I use frequently.
Visit
-
Making templatetags global to all templates
- Read on Tuesday, May 6, 2008
-
-
Django Master Class
Amazing django information on Unit testing, middleware, signals, forms & ajax, template tags, custom fields, openID and REST
Visit
-
Django Master Class

