☕ Buy a coffee: ko-fi.com/bugbytes ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐
@_btall4 ай бұрын
Thank you very much for taking the time to share your knowledge.
@bugbytes39234 ай бұрын
Thanks so much for the support, really appreciate it! Glad you're enjoying the content!
@2ds2dsr424 ай бұрын
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 =`?
@bugbytes39234 ай бұрын
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!
@frameff90734 ай бұрын
ขอขอบคุณ
@frameff90734 ай бұрын
@bugbytes39234 ай бұрын
@@frameff9073 Thanks so much, really appreciate it!
@frameff90734 ай бұрын
Good thank you
@bugbytes39234 ай бұрын
Thanks!
@ahmed_azzam_dev4 ай бұрын
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.
@bugbytes39234 ай бұрын
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.
@kazukisenpai24054 ай бұрын
How about view detail, update and delete in a same modal popup?
@bugbytes39234 ай бұрын
I'll probably add some modal versions of these actions later in the series. Seems to be a common request!
@raulolmos3454 ай бұрын
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.