Django & HTMX App - Form Validation & Tests with HTMX

preview_player
Показать описание
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

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.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
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

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

#python #django #webdevelopment #htmx
Рекомендации по теме
Комментарии
Автор

I've donated it to you. Please keep working on HTMLX Django.

frameff
Автор

Best series on Django+HTMX so far. Thank you for all your effort ^_^

ParhamSalamati
Автор

Wow!! The most under rated youtube channel. Amazing! Your contribution is priceless.

ampy
Автор

Well deserved donations for all your django content. Can't wait to see rest series.

graczew
Автор

Very good video, I remain very attentive to this saga until the end. I come from developing a large project in Django, Admin LTE with Jquery and all the CRUD Ajax, we will rewrite it using HTMX, and we will not move to React or Angular or Vue which was the first option, hypermedia is simpler, very good job.

raulolmos
Автор

Thank you!
I really want to this content.
I will make filter site.
One more how to add page? 1, 2, 3 how to change content in SPA using HTMX
I got HTMX filter on Django.❤🎉

myoji
Автор

14:13 I was thinking about the same and you already covered it, ❤❤❤❤

aafan.kuware
Автор

Do you have any plan of adding approval of payments by users with different level of authorization? Something like Payment Request ->{Pending, Approved, Paid).

ampy