☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐
In this video, we'll add form validation and error-handling to our form, and wire that up to work with HTMX. We'll see how to navigate between pages, and update the URL with the hx-push-url attribute.
We'll also write tests, using pytest, for the add transaction functionality.
Github: https://github.com/bugbytes-io/Django...
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:54 Adding form validation method in Django
09:47 Changing hx-target on form error with django-htmx
12:41 Adding Cancel button on transaction page with HTMX
14:50 Writing tests for adding transactions
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/Django...
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Django-htmx: https://django-htmx.readthedocs.io/en...
HeroIcons: https://heroicons.com/
DaisyUI Alert: https://daisyui.com/components/alert/
HTMX: https://htmx.org/docs/
#python #django #webdevelopment #htmx
Watch video Django & HTMX App - Form Validation & Tests with HTMX online without registration, duration hours minute second in high quality. This video was added by user BugBytes 20 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,106 once and liked it 160 people.