Django & HTMX Mini-Project (part 2) - Building a Live Sports Polling Application

preview_player
Показать описание
In this video, we will extend the app from the first video, and give users the ability to search and filter down the results displayed on the page

We will also add hx-indicator attributes to point to spinner elements, which we will style with the help of some custom HTMX events.

The completed code is available on Github in the "final-code" branch.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:30 Adding hx-indicator element when polling
02:30 Styling spinner with custom HTMX events
06:03 Search Functionality
08:05 Adding hx-indicator element when searching
09:04 Filtering search results with Django Q objects
13:14 Adding search params with hx-vals attribute
14:53 Outro

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

#django #htmx #python
Рекомендации по теме
Комментарии
Автор

Thanks for this.
I need the indicator for stuffs and I never know anything about it.

defidelity
Автор

Can you do a Django Core series? Non-project based just explaining Django core concepts. Models, views, urls, forms, formset, messages, context_processors

nicenaija
Автор

guys have you noticed that the search functionality can't work when the match is completed anyone who knows how to solve this issues can help

ntwarioscar