Django & HTMX App - Deleting Data with HTMX | hx-confirm attribute

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

In this video, we'll add functionality to delete user transactions in the application. We'll wire all of this up with HTMX, and will prompt users to confirm they want to delete a resource using the hx-confirm attribute.

We'll also write a test with pytest, for the delete transaction functionality.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:00 Adding Django URL and View for deleting transaction
04:41 Adding hx-delete attribute to delete icon
06:33 Getting confirmation from user with hx-confirm attribute
08:08 Testing delete functionality with Pytest

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

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

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

Thank you very much for taking the time to share your knowledge.

_btall
Автор

I enjoyed your video on deleting data with HTMX in Django! It got me thinking about performance optimizations. Could you share some insights on how to speed up Django to approach the performance levels of Go lang? I'm particularly interested in strategies to enhance response times and overall efficiency in Django applications.

ahmed_azzam_dev
Автор

I really appreciate the videos. +1 for clarity and content. One question, on line 152 for the test, would it be appropriate to add the filter for the `transaction =`?

derekrushing
Автор

How about view detail, update and delete in a same modal popup?

kazukisenpai