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

๐Ÿ™ Join our channel to get access to perks: ย ย ย /ย @bugbytes3923ย ย  โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ: To support the channel and encourage new videos, please consider buying a coffee here: https://ko-fi.com/bugbytes 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 ๐—ฆ๐—ผ๐—ฐ๐—ถ๐—ฎ๐—น ๐— ๐—ฒ๐—ฑ๐—ถ๐—ฎ: ๐Ÿ“– Blog: https://bugbytes.io/posts/ ๐Ÿ‘พ Github: https://github.com/bugbytes-io/ ๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป: Datastar: https://data-star.dev/ datastar-py: https://pypi.org/project/datastar-py/ #django #datastar

django-guardian for Object Permissions | django-unfold integration!
โ–ถ๏ธŽ

django-guardian for Object Permissions | django-unfold integration!

Datastar form validation & SSE
โ–ถ๏ธŽ

Datastar form validation & SSE

django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django
โ–ถ๏ธŽ

django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django

Django Permissions system - deep dive with Users, Groups and Permissions
โ–ถ๏ธŽ

Django Permissions system - deep dive with Users, Groups and Permissions

Testing APIs with Django REST Framework
โ–ถ๏ธŽ

Testing APIs with Django REST Framework

Is Datastar the full-stack SSE framework of the future?
โ–ถ๏ธŽ

Is Datastar the full-stack SSE framework of the future?

Django-Ninja APIs - Modern API Development in Django
โ–ถ๏ธŽ

Django-Ninja APIs - Modern API Development in Django

Android 17 sucks. So I put Linux on a phone.
โ–ถ๏ธŽ

Android 17 sucks. So I put Linux on a phone.

Django 6 Released! Tasks, Content Security Policy (CSP) support and more!
โ–ถ๏ธŽ

Django 6 Released! Tasks, Content Security Policy (CSP) support and more!

django-tasks - closer look at the DatabaseBackend and new API!
โ–ถ๏ธŽ

django-tasks - closer look at the DatabaseBackend and new API!

CHOSEN ONE!! THEY'RE BEGGING HIM TO WARN YOU... BUT HE JUST GRINNED AND SAID "TOO LATE"
โ–ถ๏ธŽ

CHOSEN ONE!! THEY'RE BEGGING HIM TO WARN YOU... BUT HE JUST GRINNED AND SAID "TOO LATE"

China Is About To Pop The AI Bubble
โ–ถ๏ธŽ

China Is About To Pop The AI Bubble

Recycling Destroyed Tech into Beautiful PCs
โ–ถ๏ธŽ

Recycling Destroyed Tech into Beautiful PCs

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker
โ–ถ๏ธŽ

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

django-tenants - Deep dive with Django and PostgreSQL!
โ–ถ๏ธŽ

django-tenants - Deep dive with Django and PostgreSQL!

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isnโ€™t 1.0 - Andrew Kelley Explains
โ–ถ๏ธŽ

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isnโ€™t 1.0 - Andrew Kelley Explains

Docker - Django and PostgreSQL setup (with uv) from scratch!
โ–ถ๏ธŽ

Docker - Django and PostgreSQL setup (with uv) from scratch!

China quietly saved the world last month
โ–ถ๏ธŽ

China quietly saved the world last month

I recreated Google's worst product feature using datastar
โ–ถ๏ธŽ

I recreated Google's worst product feature using datastar

Django & HTMX - Dynamic Form Creation and Submission
โ–ถ๏ธŽ

Django & HTMX - Dynamic Form Creation and Submission