Django
↓
Templates
This section covers the Django templating system, including how to structure templates, reuse layouts, and safely display data passed from views.
Basic Django Template Tags: A Complete Guide
For most Django developers, template tags are where backend data first becomes a real user-facing interface. If you learn the basics well, you can build most Django frontends comfortably using these basic tags.
When building pages in Django, you usually pass data from Python views into HTML templates. But raw HTML alone cannot handle logic like loops, conditions, inheritance, links, or stat ...
Understanding csrf_token in Django: What It Is, Why It Exists, and How to Use It
Many developers first see csrf_token as a mysterious line copied from tutorials. In reality, it is a critical security feature protecting authenticated users from forged actions.
When working with forms in Django, one of the first template tags developers encounter is:
{% csrf_token %}
Many beginners add it because tutorials say they must, often without u ...
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.