filmov
tv
Django and HTMX #15 - Click to Load pattern
Показать описание
In this video, we'll demonstrate the Click to Load pattern using Django and HTMX - this pattern allows dynamic loading of new data from the server.
We'll look at how to hook up pagination to this workflow, that allows us to fetch the correct batch of data each time new data is loaded.
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:55 Setup
01:20 Creating Student model
02:25 Registering model with admin
03:33 Creating student list URL & view
05:21 Creating student-list template
07:26 Paginating student list view
09:20 Adding HTMX attributes to button
10:44 Adding django-htmx package
13:07 Adding page has_next check
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #htmx #python
We'll look at how to hook up pagination to this workflow, that allows us to fetch the correct batch of data each time new data is loaded.
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:55 Setup
01:20 Creating Student model
02:25 Registering model with admin
03:33 Creating student list URL & view
05:21 Creating student-list template
07:26 Paginating student list view
09:20 Adding HTMX attributes to button
10:44 Adding django-htmx package
13:07 Adding page has_next check
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #htmx #python
Django and HTMX #15 - Click to Load pattern
Htmx & Hyperscript - Building a web app with Django - Part 15
Django & HTMX App - Setup, Models and Management Command
Django and HTMX #16 - Click to Edit pattern
Django & HTMX App - Charts with Plotly!
Python Tutorial: Build a Course Platform with Django, HTMX, TailwindCSS and Cloudinary.
Django & HTMX App - Display Transactions | django-filter FilterSet
Django & HTMX - Template Fragments with django-render-block
django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django
Django and HTMX #8 - Infinite Scroll and the hx-push-url attribute
DjangoCon Europe 2024 | Django + Alpine.js + htmx Ups & Downs
Django and HTMX #14 - Trigger Filters for Conditionally Triggering Requests
Hyperscript and HTMX - Form Examples with Django
Dynamic list views with Django and htmx
Build a Content Engine with Django, Kubernetes, TailwindCSS, Twingate, AWS S3, & HTMX FULL TUTO...
Easily Add Dynamic Content Loading to Django App with HTMX (Asynchronous Page Loading ) Tutorial
Modal forms with Django+HTMX
HTMX Post Pagination | Django Project | djblogger | 30
3 years of htmx + Django!
Django and HTMX #20 - 3-Level Chained Dropdowns
Pharmacy System in Django and HTMX
Tabs with Htmx & Hyperscript - Building a web app with Django - Part 16
Django and HTMX #21 - WebSocket Notifications with the HTMX WebSocket Extension and django-channels
Building a streaming ChatGPT clone, with Django, Channels, and HTMX
Комментарии