In this tutorial, a simple contact form is implemented using Django and HTMX. The example demonstrates how to submit a form without writing JavaScript, while still keeping the backend logic clean and idiomatic.
The video covers:
Creating a contact form using Django forms and a FormView
Rendering the form in a template
Submitting the form with HTMX using hx-post
Handling validation errors
Returning success messages without reloading the page
The result is a minimal and maintainable contact form that uses server-side rendering while still providing a smooth user experience.
👉 See contact form live: https://ramib.ch/contact
#django, #htmx, #djangoforms, #contactform, #djangotutorial, #htmxtutorial, #python, #djangohtmx