Blog posts tagged with Django

These are all the posts tagged with Django from newest to oldest. Simple enough.

Django Tip: Templates and Page Titles

Posted on April 17, 2014, 9:15 p.m.

The core Django philosophy is DRY: do not repeat yourself. This quick tip will save you time and headaches when writing Django templates with page titles.

Django Dynamic Admin Forms

Posted on Nov. 25, 2013, 11:30 a.m.

You've learned how to create dynamic forms and are using them all over the place. But when you try to use them in the admin create and change forms, things don't work quite right. Let's find out how to use dynamic forms in the Django admin.

Django Dynamic Forms

Posted on Nov. 24, 2013, 2:39 p.m.

Django's forms are powerful and simple to use. In most cases, you'll be declaring your fields explicitly. But sometimes you need dynamic forms, and overriding some class methods will let you do just that. This post will show you what to do.

A Smarter Django URL Tag

Posted on June 30, 2013, 8:25 p.m.

Django's built-in url tag is very useful. Repeating yourself goes against Django's philosophy, and the url tag helps you avoid that pitfall. But there's plenty of room for improvement. This post will show you how to make Django's url tag smarter and more useful. Note: this post applies to Django 1.5 and above. Earlier versions of Django use a deprecated syntax.

Fixing Site-Wide Caching in Django

Posted on Sept. 17, 2012, 8:30 p.m.

Caching in Django is elegant and simple, especially the site-wide cache for anonymous users. But if you use Google Analytics and other external cookies, it might not be working the way you intended. Read this tutorial to find out how to make your site as fast as it can be.