django-planet
Posts
Blogs
Feeds
Authors
Posts
Blogs
Authors
Search
Home
Blogs
Valentino Gagliardi
Building a Django middleware (injecting data into a view's context)
Dec. 12, 2019
Building a Django middleware (injecting data into a view's context)
in blog
Valentino Gagliardi
original entry
Building a Django middleware (injecting data into a view's context)
In this post you'll learn how to build your own Django middleware and how to inject data into a view's context directly from the middleware.
Recent Posts
From Bootcamp to Project Manager - Keanya Phelps
Inverting the Testing Pyramid
Boost Your GitHub DX
Freelancing & Community - Andrew Miller
How to Encourage Better Image Uploads with Help Text
Django News - Balancing the AI Flood in Django - Mar 27th 2026
LLMs for Open Source maintenance: a cautious case
Lunch Talk Series: Building maintainable Django projects: the difficult teenage years
Rewriting a 20-year-old Python library
Speeding Up Django Startup Times with Lazy Imports