PyCon Nigeria Annual Conference

Django & HTMX: A Perfect Match for Modern Web Development

speaker-foto

Joseph Adediji

A Software developer and technical writer with a keen interest in AI and automation.

Description

In this talk, we will explore how Django seamlessly pairs with HTMX, an innovative library that enables dynamic frontend interactions without writing JavaScript codes.

Abstract

This talk aims to introduce Django developers, of all levels, to how HTMX can be a great solution for building modern, interactive web applications. We will explore the synergy between Django and HTMX, an innovative library that enables dynamic frontend interactions without the need for writing JavaScript codes.

We will demonstrate how this combination can simplify front-end development without compromising functionality or user experience.

Attendees will gain practical insights, best practices, and real-world examples to harness the full potential of Django Templates and HTMX in their projects. They will learn how to integrate HTMX into their existing Django Apps and how to use some HTMX attributes to improve Django frontend capabilities and user experience.

Outline: - Introduction: this section will give an overview of Django and its backend strengths and an Introduction to htmx and its role in frontend enhancement. - Frontend challenges in traditional Django development. - Introducing HTMX: Overview and capabilities of htmx and key features and compatibility, - Getting Started with HTMX: this section will cover setting up htmx in a Django project and some basic htmx attributes and HTML integration. - Integrating HTMX with Django: this section will show a practical example of using htmx for enhanced interactivity in Django templates. - Closing/Q&A Session

Audience level: Novice