filmov
tv
Django and HTMX #8 - Infinite Scroll and the hx-push-url attribute
![preview_player](https://i.ytimg.com/vi/RacU_1NgVIg/maxresdefault.jpg)
Показать описание
In this video, we will quickly look at the hx-push-url attribute, and how it can be used to change the URL when navigating to new sections of your app via HTMX requests.
We will also implement infinite scroll with HTMX, and will see how this can be done using utilities in Django (pagination, class-based-views and template loop helpers).
We'll also look at the django-htmx package's most basic use-case, and use that to help us return the correct template fragment based on the whether or not the request comes from HTMX! More info on this package can be found below in the further reading section.
Code will be available on the "Video #8" directory of the below Github repository.
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:39 hx-push-url attribute
02:30 Infinite Scroll with HTMX
08:31 Adding the django-htmx package
14:38 Outro
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #htmx #python
We will also implement infinite scroll with HTMX, and will see how this can be done using utilities in Django (pagination, class-based-views and template loop helpers).
We'll also look at the django-htmx package's most basic use-case, and use that to help us return the correct template fragment based on the whether or not the request comes from HTMX! More info on this package can be found below in the further reading section.
Code will be available on the "Video #8" directory of the below Github repository.
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:39 hx-push-url attribute
02:30 Infinite Scroll with HTMX
08:31 Adding the django-htmx package
14:38 Outro
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #htmx #python
Django and HTMX #8 - Infinite Scroll and the hx-push-url attribute
Create a quiz app with HTMX and Django in 8 mins ☑️
Hyperscript and HTMX - Form Examples with Django
How to speed up your Django list view (with HTMX)!
Django & HTMX - django-template-partials for Template Partial Responses
HTMX-ify a Django list page!
Python Tutorial: Build a Course Platform with Django, HTMX, TailwindCSS and Cloudinary.
Django & HTMX - Template Fragments with django-render-block
DJANGO Templates | Python Django Full Course From Scratch Class #8
Django Ecommerce Website | Add to the cart | Htmx and Tailwind | Part 8
Django & HTMX App - Display Transactions | django-filter FilterSet
Django and HTMX #3 - Listing and Creating Items (with no refresh!)
Dynamic list views with Django and htmx
Django, HTMX and Alpine.js - Modals and Forms
Create a Dependent Select Field in Django With HTMX
django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django
78 - Uploading Files with Django & HTMX - Python & Django 3.2 Tutorial Series
HTMX Post Pagination | Django Project | djblogger | 30
Django and HTMX #21 - WebSocket Notifications with the HTMX WebSocket Extension and django-channels
Django and HTMX #15 - Click to Load pattern
Django and HTMX #16 - Click to Edit pattern
Using Django 4.2's StreamingHttpResponse and HTMX SSE to provide real time notifications
Django and HTMX #4 - Deleting Items (with no refresh!)
Django HTMX & Alpine.js mini-project - Sport Result Prediction App
Комментарии