Django
↓
Production & Deployment
Learn how to move Django applications from local development to real production environments. This section covers the practical steps and decisions involved in deploying, securing, and maintaining Django projects outside the development server. Topics include environment variables, production settings, static and media file handling, PostgreSQL, Gunicorn, Nginx, HTTPS, logging, monitoring, caching, background workers, security hardening, and server configuration.
Security Logging in Django with a Custom PostgreSQL Logging Handler
A practical guide to building a dedicated security logging system in Django using Python logging, custom handlers, and a separate PostgreSQL database. Covers logger configuration, handler internals, connection pooling, threading.Lock(), middleware integration, and when async or queued logging becomes worthwhile.
Django already has a mature logging system built on top of Python’s standard logging module. For most application logs, writing to stdout, files, or a centralized logging provider is enough. But som ...
Setting Up Static and Dynamic Sitemaps in Django
Learn how to create static and dynamic sitemaps in Django using the built-in sitemap framework, including model-backed URLs, static views, location(), and common routing mistakes to avoid.
A sitemap is an XML file that tells search engines which URLs exist on your site and, optionally, how often they change, how important they are, and when they were last modified. Django includes a b ...
Join the Newsletter
Practical insights on Django, backend systems, deployment, architecture, and real-world development — delivered without noise.
Get updates when new guides, learning paths, cheat sheets, and field notes are published.
No spam. Unsubscribe anytime.
There is no third-party involved so don't worry - we won't share your details with anyone.