django-htmx - Django Extensions for Working with HTMX

Описание к видео django-htmx - Django Extensions for Working with HTMX

In this video, we will take a look at the django-htmx package.

This package provides extensions and tools for working with HTMX in Django projects.

These tools can be used to trigger actions on the client side, change HTMX targets for response content, change swap method, and trigger client side redirects and refreshes.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:34 Installing and Setting up django-htmx
01:25 HtmxMiddleware class and request.htmx property
10:18 HttpResponseClientRedirect
11:32 HttpResponseClientRefresh
13:07 HttpResponseLocation
17:40 HttpResponseStopPolling
21:49: push_url function
24:18 reswap function
26:46 retarget function
33:13 trigger_client_event function

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

▶️ Full Playlist:
   • Django and HTMX #1 - Introduction to ...  

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
django-htmx: https://django-htmx.readthedocs.io/en...
HTMX installation: https://htmx.org/docs/#installing
HX-Location header: https://htmx.org/headers/hx-location/
django-htmx HTTP tools: https://django-htmx.readthedocs.io/en...

#django #python #htmx

Комментарии

Информация по комментариям в разработке