Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Django and HTMX Tutorial - Easier Web Development with Dynamic Functionality

JetBrains via YouTube

Overview

Explore how to enhance Django web applications with dynamic functionality using the htmx library in this comprehensive tutorial. Learn to implement lazy loading, search-as-you-type, and infinite scroll with minimal JavaScript. Discover how htmx integrates with Django's architecture, allowing for more server-side logic and reduced client-side complexity. Gain insights into the performance advantages of this approach compared to traditional single-page applications. Follow along as the instructor demonstrates project setup in PyCharm, htmx installation, and step-by-step implementation of various features. Understand how to build Django objects dynamically, use the Django Paginator class, and leverage the django_htmx library for improved developer experience. Dive into discussions on web app performance and the benefits of using htmx in Django development.

Syllabus

– In this Video
– Introducing Christopher Trudeau
– What is htmx?
– Overview of Django and htmx
– Project overview
– Intro to the project in PyCharm: Walk through of the Django app
– Environment configuration in PyCharm
– Discussion of htmx
– Lazy loading with htmx: introduction and explanation
– Implementing lazy loading with htmx
– How to install htmx
– Discussion of lazy loading
– Search functionality with htmx: introduction and explanation
– Implementing search functionality with htmx
– How to build Django objects dynamically with the Django Q object
– How to paginate search results with the Django Paginator class
– Building a template for the search page
– Building a view for the search page
– Discussion of implementing search functionality
– Search-as-you-type with htmx: introduction and explanation
– Implementing search-as-you-type with htmx
– How to install the Django_htmx library by Adam Johnson
– Discussion of search-as-you-type
– Why the django_htmx library is useful
– Infinte scroll with htmx: introduction and explanation
– Implementing infinte scroll with htmx
– Other functionality provided by htmx
– Promo code for a 45% discount on Django in Action
– Discussion of infinte scroll and how htmx adds to the DX
– htmx and web app performance

Taught by

PyCharm by JetBrains

Reviews

Start your review of Django and HTMX Tutorial - Easier Web Development with Dynamic Functionality

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.