https://htmx.org logo
Hmm, this is the exact use case. You just use htmx...
# 🔥-django-htmx
v
Hmm, this is the exact use case. You just use htmx to post to a django view which handles the post request and returns the value (or rendered html fragment). all the request/response / math / db stuff is going to be in the view side. If you're using class-based views, this one is probably more straightforward as a regular old function. You can start with hx-post and hx-target on the htmx side 🙂