filmov
tv
Django and HTMX #10 - Chained Dropdowns with Django and HTMX
Показать описание
In this video, we will implement a dependent (or chained) dropdown using HTMX and Django. This will allow us to make the choices in one dropdown contingent on the selection made in another dropdown.
We'll work with an example that uses a set of university courses, each of which have their own modules. The selected course should determine the set of modules available in the second dropdown.
HTMX's documentation refers to this as "cascading selects".
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:14 Creating database models
02:58 Creating management command to populate database
04:23 Adding URL, view and templates
06:01 Adding Select Elements (Dropdowns)
07:39 Adding HTMX Attributes
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #htmx #python
We'll work with an example that uses a set of university courses, each of which have their own modules. The selected course should determine the set of modules available in the second dropdown.
HTMX's documentation refers to this as "cascading selects".
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:14 Creating database models
02:58 Creating management command to populate database
04:23 Adding URL, view and templates
06:01 Adding Select Elements (Dropdowns)
07:39 Adding HTMX Attributes
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #htmx #python
Django and HTMX #10 - Chained Dropdowns with Django and HTMX
Django & HTMX App - Setup, Models and Management Command
Django and htmx Tutorial: Easier Web Development
How to speed up your Django list view (with HTMX)!
Django and HTMX #15 - Click to Load pattern
Hyperscript and HTMX - Form Examples with Django
Django & HTMX App - Create Transactions w/ HTMX
Dynamic list views with Django and htmx
DJANGO Template Variables | Python Django Full Course From Scratch Class #24
Django & HTMX - django-template-partials for Template Partial Responses
Django and HTMX #5 - Building a Dynamic Search Component
Create a Dependent Select Field in Django With HTMX
DjangoCon Europe 2024 | Django + Alpine.js + htmx Ups & Downs
django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django
django-htmx - Django Extensions for Working with HTMX
Django, HTMX and DaisyUI Components - Building a To-Do List App
Django and HTMX #1 - Introduction to HTMX and Dynamic AJAX Requests
Django Dynamic Forms Tutorial with Htmx
DJANGO Полный Проект: HTMX, CELERY, REDIS, POSTGRESQL, DOCKER, NGINX, API и многое другое...
I built 10 web apps... with 10 different languages
Django and HTMX #20 - 3-Level Chained Dropdowns
Django and HTMX #8 - Infinite Scroll and the hx-push-url attribute
Django, HTMX and Alpine.js - Modals and Forms
Django & HTMX App - Deleting Data with HTMX | hx-confirm attribute
Комментарии