Django and Datastar integration - hypermedia example with Django and the Datastar Python SDK!

preview_player
Показать описание
🙏 Join our channel to get access to perks:

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

In this video, we'll explore a practical example of integrating Django and Datastar together to build a hypermedia web application. We'll explore a click to load example and will introduce the Python SDK for Datastar.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro - Datastar & Django!
01:03 Datastar backend SDKs
04:55 Paginating content with Django
07:19 Installing datastar-py
09:30 Datastar GET action plugin to send requests
11:57 Checking for Datastar request in Django view
12:57 Creating template partial (template fragment)
15:17 Returning DatastarResponse from Django view
20:29 Using Datastar signals to communicate state
25:03 Removing ‘load more’ button with remove_fragments event type
27:30 data-indicator attribute
30:20 Django StreamingHttpResponse class

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

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

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

Great video❤. When Datastar V3 comes out, can you make another video about Datastar? Datastar announced that there will be significant python sdk changes and now im just w8ing for it to drop. Love your channel ❤

netsalee
Автор

Thanks, that was really a necessary video!

viniciustersi
Автор

Thank you very much for that video. This was probably a lot of effort if you had to check source codes. Anyway this package seems to be really an interesting alternative.

dinobaurier
Автор

A Datastar + Django series is coming....!!!!

ernestoperezamigo
Автор

bug, seria legal fazer o CRUD completo e também como afetaria a tabela de dados e filtros dinâmicos também, como por gênero. Obrigado pelo conteúdo valioso!

el-gatooow
Автор

Deberías hacer una introducción a Django async, mostrando por ejemplo el envío de correos sin detener el flujo de la request

matyloque
Автор

Still having mixed feelings about that library - it looks significantly more complex comparing to HTMX, while potentially more powerful

ioannp.
Автор

Great video as always I have a question regarding datastar, are all the functionnlities of HTMX & AlpineJS combined on this single bundle or not ?

anouarbagent
Автор

how difficult is this with just htmx alone?

gardnmi
Автор

thanks, what is your opinion to use datastar with fastapi? just sending and receive JSON?

SpeedCodesAgencyAcademy
Автор

Thanks
can you do a video of how to use inertia with django

abdrahim
Автор

The only real world problem we are gonna face with htmx is that when a user disables JavaScript in their browser, htmx may not work as expected, unless we boost the hx request. Is datastar gonna face similar issue, how do we go around it?

trosgate
Автор

Django templates partials would have simplified by avoiding creation of a new partial template.

repotranstech
visit shbcf.ru