Django & HTMX Mini-Project - Building a Live Sports Polling Application #1

preview_player
Показать описание
In this video, we will build out an application that uses HTMX's polling capabilities to poll our Django backend for sports scores updates.

This will simulate a real match day, where scores are changing frequently and updates are displayed on the webpage without needing a refresh.

We use the django-htmx package in this tutorial, and build a few Django management commands for loading initial model data, as well as a script for simulating updates to scores.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 intro
01:02 setup
02:20 creating database models
03:45 loading initial data
06:47 creating fixtures url and view
08:49 styling fixtures template
12:02 adding htmx polling attributes
14:38 building result simulator
17:35 preventing unnecessary polling
20:33 adding HX-Refresh response header
25:11 outro

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

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

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

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

Well prepared video with interesting details! 😀👍
I really like that it assumes we have a bit of knowledge about Django / Htmx from previous videos AND still explains enough.
Looking forward to part 2. Thanks for this!

silkogelman
Автор

I was waiting for Django + HTMX series 😁

kazuoy
Автор

That is great video. Thanks for sharing. Looking forward for more content. 💯

Herdogan
Автор

FullHD (1080) is available now. Been looking for Django + HTMX series like this.

FirdausAziz
Автор

Thank you sir, keep up the great content.

blees