Django and HTMX: Patterns to Success

Track:
Web Development, Web APIs, Front-End Integration
Type:
Talk
Level:
intermediate
Duration:
30 minutes

Abstract

This talk is intended for Django or FastAPI developers with interest on HTMX development or some experience with it. The Python and Django community has been at the forefront of the “hypermedia revolution” being one of the early adopters of HTMX.

Although there are a lot of introductory tutorials and presentations about shifts from SPA’s to HTMX that had great success, there’s a lack of patterns and useful technical examples from real in-production applications.

This is a talk that starts by presenting why HTMX pairs so well with Django, and provides answers to many common issues and missing standards that creep along an application development using HTMX.

Based on my past experience working on multiple projects using this tech stack, I’ll share several points on how to make a Django project more focused and oriented to the hypermedia way.

This presentation covers topics such as the advantages of an HDA vs the typical SPAs, using the concept of "resources on demand" as an architecture, component driven templating, view composition and server-side state management, alongside many others that should help any Python developer to deliver fast and with great quality on the Web.