django-htmx - Django Extensions for Working with HTMX

BugBytes June 19, 2023
Video Thumbnail

About

On this channel, we create tutorials and videos primarily about web development, data analytics and data science. We'll focus on implementations using primarily Python and JavaScript, occasionally diving into other languages. As the channel progresses, we will also touch on concepts such as DevOps, containerization, cloud computing (AWS) and machine learning/AI. If you can spare any change, please consider buying me a coffee to help keep me motivated to write tutorials, make videos and write blog posts! It would be greatly appreciated: https://ko-fi.com/bugbytes Blog: https://www.bugbytes.io/posts/ Github: https://github.com/bugbytes-io

Video Description

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: https://www.youtube.com/watch?v=Ula0c_rZ6gk&list=PL-2EBeDYMIbRByZ8GXhcnQSuv2dog4JxY 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮: 📖 Blog: https://bugbytes.io/posts/ 👾 Github: https://github.com/bugbytes-io/ 🐦 Twitter: https://twitter.com/bugbytesio 📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: django-htmx: https://django-htmx.readthedocs.io/en/latest/ 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/latest/http.html #django #python #htmx

You May Also Like