Django & HTMX App - Form Validation & Tests with HTMX

Опубликовано: 20 Июнь 2024
на канале: BugBytes
4,106
160

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
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


Смотрите видео Django & HTMX App - Form Validation & Tests with HTMX онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь BugBytes 20 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,106 раз и оно понравилось 160 людям.