Django & HTMX App - HTMX form submission | Query Optimization with django-debug-toolbar

Описание к видео Django & HTMX App - HTMX form submission | Query Optimization with django-debug-toolbar

In this video, we'll amend our transaction filter form to submit using HTMX, and will handle the hypermedia response from Django by swapping HTML into the DOM

We'll also bring HTMX into the static directory of the project (rather than reference a CDN).

Finally, we'll quickly optimize database queries using django-debug-toolbar, to prevent the N+1 problem.

Github: https://github.com/bugbytes-io/Django...

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

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
0044 Submitting form using HTMX
03:29 Returning template partial with django-htmx
11:01 Adding HTMX locally to static directory
13:38 Optimising database queries with django-debug-toolbar and select_related function

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

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
DaisyUI: https://daisyui.com/
HTMX: https://htmx.org/docs/
django-htmx: https://django-htmx.readthedocs.io/en...

#python #django #webdevelopment

Комментарии

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