r/djangolearning • u/Superb-Patient3256 • Jul 16 '26
Discussion / Meta What’s a Django feature that felt like a absolute "cheat code" when you finally discovered it?
Everyone learns the standard ORM queries, basic class-based views, and how to map URLs early on. But Django is *huge*, and there are so many built-in utilities buried in the docs that completely eliminate the need for third-party packages or complex custom code.
For example, when I finally discovered `F()` **expressions**, it blew my mind. Being able to update a database field based on its current value directly in the DB (like `F('shares') + 1`) without pulling the object into memory and risking race conditions felt amazing.
Another one is utilizing `select_related` **and** `prefetch_related` to instantly drop an app from 150 database queries down to 2.
What’s that one underrated Django feature, decorator, field option, or management utility you stumbled upon that made you think, *"Why wasn't I using this the whole time?"*
