Python 3.15: Explicit Lazy Imports Faster Startup Without Messy Imports
Python 3.15: Explicit Lazy Imports Faster Startup Without Messy Imports
Everything published here, newest first. Filter by category or tag, or press ⌘K to search.
10 articles · page 1 of 1
Python 3.15: Explicit Lazy Imports Faster Startup Without Messy Imports
AI coding assistants have changed the way software is written.
A deep dive into how Django migrations really work how makemigrations detects model changes, how the migration graph and autodetector operate, how migrate turns operations into SQL via the SchemaEdito
A practical, step-by-step guide to renaming Django models and fields without losing data or breaking production — covering RenameModel, RenameField, ForeignKeys, and zero-downtime strategies.
Your Django code may look fast, while your database is doing hundreds of unnecessary queries. Learn how to find the real bottlenecks and make your Django APIs faster with practical query optimization.
Learn how to safely clean and squash Django migration files before production, with practical examples and a beginner-friendly step-by-step workflow.
Learn the difference between API Keys and Access Tokens, when to use each, how they work, and why choosing the right authentication method is critical for building secure and scalable APIs.
A practical guide to finding N+1 query problems in Django with django-debug-toolbar and assertNumQueries, and fixing them with select_related, prefetch_related and Prefetch.
How to add Redis caching to a Django application without shipping stale data: cache backends, key design, the cache-aside pattern, invalidation on save and stampede protection.
What a B-tree index really does, how to read EXPLAIN ANALYZE, why column order in composite indexes matters, and when adding an index makes a query slower instead of faster.