2022-09

2022-09-17 Using the Django messages framework with HTMX by Benoit Blanchon

This article explains how to create a middleware that extracts the messages from Django’s messages framework to make them available to HTMX.

It’s a condensed version of my 30-minute video: Django+HTMX : integration with the messages framework and a follow-up to my previous article on Django+HTMX, but you can read it independently.