What it does
A Cursor rules file for combining HTMX with Django. It covers Django templates with HTMX attributes, forms and validation, URL routing, class-based views, the ORM and middleware, plus CSRF protection, error handling and project structure.
Use cases
- 01Return partial HTML from a class-based view
- 02Validate an HTMX form with Django forms
- 03Keep CSRF protection on HTMX requests