Sign in
There are a total of 68 posts.
Published Jan 23, 2026 by whitedec
Extracting URLs in Django Templates: `request.path` vs `path_info` vs `get_full_path` vs `build_absolute_uri`
A concise guide to retrieving the current URL in Django templates. It compares request.path, request.path_info, request…
Published Jan 15, 2026 by whitedec
Understanding Pillow’s `open()`, `verify()`, and `load()` from a Security Perspective
Explore how Pillow’s `open()`, `verify()`, and `load()` methods affect image‑upload security. Learn practical strategie…
Published Jan 14, 2026 by whitedec
Let Nginx Handle File Delivery in Django with X‑Accel‑Redirect
When Django streams files directly, the app server can become a bottleneck. By using X‑Accel‑Redirect, Django handles p…
Published Jan 13, 2026 by whitedec
Django Image Upload Security Guide: Efficiently Preventing Server Crashes
A practical guide for Django‑based web services to secure image uploads while avoiding resource waste. Learn how to per…
Handling Homonyms in Django Internationalization: Avoiding the "Polish" Tragedy with Contextual Markers
This guide explains how to resolve translation conflicts in Django when the same word has multiple meanings. By using t…
Published Jan 05, 2026 by whitedec
Clearing Up the gettext vs gettext_lazy Confusion in Django (Understanding When Translation Happens)
Clear up the confusion between Django’s `gettext` and `gettext_lazy`. Learn when to translate immediately versus lazily…
Published Dec 22, 2025 by whitedec
Relearning Django from Scratch: A Roadmap Starting with HTTP
Relearn Django from scratch by starting with HTTP basics and a roadmap. Master Function-Based Views first, then move to…
Published Dec 11, 2025 by whitedec
ORM, @property, and Celery Debugging: Encrypted Fields and FieldDoesNotExist Issues
Fix FieldDoesNotExist errors caused by wrapping encrypted fields with @property in Django models. Learn why this issue …
Published Dec 10, 2025 by whitedec
Understanding the Difference Between _, __, and . in Django ORM: When to Use user_id, user.id, or user__id?
A clear guide to the often‑confusing `_`, `__`, and `.` symbols in Django ORM. It explains the real‑world meaning of `u…
Published Dec 09, 2025 by whitedec
Ensuring Server‑to‑Server Integrity with HMAC Signatures in Django/DRF
Learn how to secure server‑to‑server communication in Django/DRF with HMAC signatures—covering key sharing, timestamp p…
Published Dec 04, 2025 by whitedec
Lightweight Docker Images with Django and Tailwind CSS: A Multi‑Stage Build Strategy
Learn how to keep your Django + Tailwind CSS Docker images lightweight by using a three‑stage multi‑stage build. Node.j…
Published Dec 03, 2025 by whitedec
Safely Storing Secret Keys in Django Models (Fernet Edition)
Learn how to securely store API keys and secrets in Django using Fernet encryption. This guide covers key generation, s…
Using Django ORM’s F Expressions: Powerful Features and Real‑World Examples
Learn how Django's F expressions let you perform database‑level calculations and comparisons, improving performance and…
Published Nov 23, 2025 by whitedec
Understanding `tests.py` for Django Developers
This post summarizes the role and usage of the automatically generated `tests.py` file in Django apps. Explore how to w…
Published Nov 22, 2025 by whitedec
Confronting the Essence of Django - Why `HttpResponse` is the 'Fundamental'
Explore the core reasons and roles of HttpResponse in Django. This article explains how the HttpResponse object connect…