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 2014-04-18 01:15:00+00:00

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 2013-11-25 16:30:00+00:00

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 2013-11-24 19:39:11+00:00

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 2013-07-01 00:25:38+00:00

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 2012-09-18 00:30:00+00:00

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.