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:
https://www.youtube.com/playlist?list=PL-2EBeDYMIbRByZ8GXhcnQSuv2dog4JxY
? ????????:
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:
https://ko-fi.com/bugbytes
?????? ?????:
? Blog: https://www.bugbytes.io/posts/django-and-htmx-chained-dropdown/
? Github: https://github.com/bugbytes-io/django-htmx-chained-dropdown
? Twitter: https://twitter.com/bugbytesio
? ??????? ??????? ??? ???????????:
HTMX Value Select: https://htmx.org/examples/value-select/
#django #htmx #python
Рекомендуемые видео



















