Django Under Hood #03: Django’s Connection Management — What Happens Between Your Code and PostgreSQL Every sql query needs a database connection in django. But you didn’t open one. You won’t close one. Django handles it. But How? Django Development
Django Under Hood #02: Django’s ORM Query Compiler—From QuerySet to SQL The laziest code in your application: Django’s ORM is lazy. Aggressively lazy. It builds a query specification, passes it through a compiler, generates SQL, and executes it — but only when absolutely necessary. Django Development
Django Under Hood #01: Django Request/Response lifecycle - What Actually Happens When a Request Hits Your Server What happens in the 47 milliseconds between a request arriving at your server and your view function executing? What code runs? What objects are created? What decisions are made before you even see the request? Django Development
Mastering Django GeneratedField with examples Learn how to use Django's GeneratedField to enhance your models efficiently. Discover its benefits, implementation, and best practices to optimize database performance in Django. Django Databases
Django select_related vs prefetch_related: The Visual Guide I realized I'd never actually seen anyone explain the django select_related and prefetch_related difference visually - showing what SQL each one produces, what data flows where, and why picking the wrong one doesn't just fail to help but can actually make things worse. So I drew it on a whiteboard. That whiteboard sketch eventually became this article. Django Databases
Django Custom User Model: The Right Way From Day One Every Django project should start with a custom user model. Not because you need custom fields right now, but because you will. And by the time you do, switching is either a 15-minute task (if you did it on day one) or a multi-day nightmare (if you didn’t). Skip this step and you’ll regret it by migration 20. Django
Best HTML5 Features Let me show you the HTML5 features that speed up loading and completely changed how I build web. Development
Incredible Python Code Snippets These are low-level, sharp-edged utilities I actually reach for when building real systems, debugging production issues, or automating things that shouldn’t need a full framework. Every function below exists because it solved a problem I hit more than once. Python
PostgreSQL Connection Pooling: Django Native Pools and PgBouncer Optimizing the Most Critical Connection in Your Stack Django Databases
Database Indexing: The Performance Trick Nobody Explained Properly Your queries are slow because you don’t understand indexes. Let’s fix that in 15 minutes. Databases
Django Authentication & Authorization The Security Foundation Every Django App Needs—Done Right from Day One Django