Django models incredible tools Q objects, F objects, annotate, and aggregate — the four tools that let you stop dropping to raw SQL, and the one distinction everyone gets wrong. The Django ORM Can Do Way More Than .filter() Django Development
Reverse Relationships in Django Guide Where that mysterious _set comes from, what related_name actually does, and how to query backwards across a ForeignKey. author.book_set: Reverse Relationships in Django, Finally Clear... Django Development
Django: Custom model managers and querysets Custom managers and querysets — how to name your query logic once, reuse it everywhere, and chain it like Django’s built-in methods. Stop Repeating .filter(is_active=True) Everywhere. Django Databases Development
How debug Django queryset with explain() function In this article, we'll explore the purpose of explain(), how to use it for debugging, and how to interpret its output for both PostgreSQL and SQLite. Django Databases
How to Loop Through Nested Dictionaries in Django Templates Here is a article describing the general steps for iterating through nested dictionaries in Django templates. Django Development
Idempotency Explained Simply Why “click Pay twice, charged once” is so much harder than it looks Architecture Django Development Databases
Database Design Patterns Every Python Backend Needs in Production Your database models define your data. Your patterns define whether you can trust it. Databases Django Python Development
Django Testing Strategies with Examples Django Testing Strategies with Examples. From Unit Tests to End-to-End Django Development
Django Under Hood 10: Django’s Test Client - How Your Tests Fake HTTP Requests The test client is a simulation — a carefully crafted fake that mimics HTTP requests while staying entirely in-process. It’s fast. It’s convenient. And it’s subtly different from real requests in ways that can make tests pass while production fails. Let’s trace what happens when you call self.client.get() Django Development
Django Under Hood 09: Django’s Migration System - From Model Changes to ALTER TABLE How does Django know what changed in sql database? Let’s trace from makemigrations to ALTER TABLE. Django Development
Django Under Hood 08: Django’s Static Files - From collectstatic to Browser Cache Let’s trace a static file from your static/ directory to a browser's cache... Most Django applications have misconfigured static files. They work, but they’re slow, or they break on deploy, or they don’t cache properly. Understanding the staticfiles system prevents these issues. Django Development
Django Under Hood 07: Django’s Authentication Backend Chain - How Users Actually Get Authenticated Understanding the authentication chain isn’t about adding features — it’s about debugging the ones that mysteriously don’t work. Let’s trace from authenticate() to request.user. Django Development