Items tagged with djangosnippets

March 3rd, 2009

Link // 03.03.2009 // 10:30 AM // 0 CommentsDjango snippets: Smart {% if %} template tag

A terrific drop-in replacement for Django’s built-in {% if %} tag, this one includes logical operator support. I have a series of filters I use for logical operators in Django templates and while it works well, I think this approach is better. Plus, it’s 100% backwards-compatible with the built-in {% if %} tag, so it’s really easy to get started using it. Nice. Visit site »

March 2nd, 2009

Link // 03.02.2009 // 2:31 PM // 0 CommentsDjango snippets: Hide Emails

Useful snippet from Brent O’Connor: obscures e-mail addresses in your content (by using JavaScript to render a link which contains the email encoded in a random string of hex digit or decimal digits). Nice. Visit site »

February 25th, 2007

Blog entry // 02.25.2007 // 7:02 PM // 24 CommentsTwo new Django sites, both with source available
In which I point out two new Django-powered sites, CheeseRater.com and DjangoSnippets.org, that offer full source code for you to peruse and learn from.