2022-09 ¶
2022-09-17 Using the Django messages framework with HTMX by Benoit Blanchon ¶
-
https://blog.benoitblanchon.fr/django-htmx-messages-framework/
-
https://github.com/bblanchon/django-htmx-messages-framework/
-
2023-03-06 Using the Django messages framework with HTMX’s OOB swaps 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.