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

  Рет қаралды 1,849

BugBytes

BugBytes

Күн бұрын

Пікірлер: 15
@bugbytes3923
@bugbytes3923 Күн бұрын
☕ Buy a coffee: ko-fi.com/bugbytes ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐
@_btall
@_btall 4 ай бұрын
Thank you very much for taking the time to share your knowledge.
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thanks so much for the support, really appreciate it! Glad you're enjoying the content!
@2ds2dsr42
@2ds2dsr42 4 ай бұрын
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 =`?
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thank you! You're right, that would be a more reliable approach (to repeat the same query). As long as no setup methods are adding transactions to the database, it shouldn't affect the test, but it'd be more reliable to do the same filtering. Thanks for pointing that out!
@frameff9073
@frameff9073 4 ай бұрын
ขอขอบคุณ
@frameff9073
@frameff9073 4 ай бұрын
@bugbytes3923
@bugbytes3923 4 ай бұрын
@@frameff9073 Thanks so much, really appreciate it!
@frameff9073
@frameff9073 4 ай бұрын
Good thank you
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thanks!
@ahmed_azzam_dev
@ahmed_azzam_dev 4 ай бұрын
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.
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thanks! The most important thing here is to make sure your database queries are as optimized as possible using the Django ORM, and to make use of caching where appropriate. Use database indexing if you know the query patterns for read-heavy tables. Offload processing to workers/threads where you can (for generating PDFs, image manipulation, etc - as some examples). Add client-side validation to take some load off the Django server. I would say these would help your app be fast and responsive, and in general you should mostly be able to get speeds that aren't too far behind Go. But Go is natively a faster language than Python, so this might depend on the work you're doing.
@kazukisenpai2405
@kazukisenpai2405 4 ай бұрын
How about view detail, update and delete in a same modal popup?
@bugbytes3923
@bugbytes3923 4 ай бұрын
I'll probably add some modal versions of these actions later in the series. Seems to be a common request!
@raulolmos345
@raulolmos345 4 ай бұрын
The video is excellent as always, and in my opinion adding the modal functionality to this CRUD practically does not move it from its place to the user and that would give the user a great experience, depending of course on how many fields the form has, in this case it would be very good.
Django & HTMX App - Infinite Scroll and Pagination
26:30
BugBytes
Рет қаралды 2,8 М.
Creator of HTMX Talks HTMX
1:02:41
ThePrimeTime
Рет қаралды 184 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 84 МЛН
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 138 М.
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 12 М.
Django and HTMX #4 - Deleting Items (with no refresh!)
10:46
BugBytes
Рет қаралды 15 М.
Redis vs Memcached Performance Benchmark
8:44
Anton Putra
Рет қаралды 24 М.
django-htmx - Django Extensions for Working with HTMX
37:06
BugBytes
Рет қаралды 23 М.