Nifty Django Features
A series highlighting small, useful Django features you might have missed. Each post is a short, practical look at one feature, with code and generated SQL where it helps.
-
1
F() Expressions in Django
Learn how F expressions reference model fields in queries, useful for filters, ordering, and race conditions.
July 02, 2026
-
2
Django's resolve() Function
See how Django's resolve function can turn your existing logs into an analytics tool.
July 08, 2026
-
3
Model._meta.get_fields() in Django
Model._meta.get_fields() lets you walk your related models and build custom cascading deletes.
July 15, 2026
-
4
Django Form Templates
Form templates allow you to contain your form's customization to just the form, keeping your views nice and clean!
July 22, 2026
-
5
Speed Up Django Tests with setUpTestData
Speed up your tests by using the setUpTestData method.
July 29, 2026
-
6
Exists() for Nested QuerySets in Django
There will come a time when your nested QuerySet performs poorly, when that happens, reach for Exists!
August 05, 2026
-
7
Django Admin Form Injection
A hidden Django admin feature for passing values between windows.
August 12, 2026
-
8
Counting on Multiple Columns with the Django ORM
The Count expression only works on a single column, but you can use Subquery to count on multiple columns!
August 19, 2026
-
9
Where to Find Third-Party Django Packages
The documentation now includes mentions of third-party packages and community maintained solutions, go check them out!
August 26, 2026
-
10
Custom Django Migration Operations with Index
You can hack Django's Index class to define custom migration operations on your model.
September 02, 2026
- 11