title: HTMX for messages from the backend in django
body: <p>I wanted to use HTMX to show messages from django backend after a lot of trial and error I ended up with a working solution, that I want to leave behind for anyone looking for it - also, please feel free to post your suggestions. Unfortunately, besides a little <a href="https://github.com/adamchainz/django-htmx/tree/main/example" rel="nofollow noreferrer">example</a> from the htmx-django package, there is almost no tutorial material available. Be sure to check the example out, as it covers some basics specially for django users!</p>