This was sooooo properly tailored to give as much information as possible in ~40 minutes that exceeded my expectations on value vs time spent on a video! THANK YOU FOR DOING THIS!
I've seen a similar pattern somewhere else for inserting the new to-do item in the list by using hx-swap: afterbegin or beforeend. My question is if you're updating the DB with a new list item is it not easier to just fetch all the to-dos and swap innerHTML with the partial of list items and call it a day? Or are there advantages to doing the other way?
Wow i literally am making my capstone project and my idea was to use django, with htmx , tailwind with daisyui like this exact setup but with postgreSQL for db. and then i came across this video and its already been done lol great minds think alike ig but yeah seems like a good tech stack.
thanks very much for your efforts, if we want to add "edit_todo" functionality to update tr inplace using htmx and template_partials , how we can do that ?
Hijacking this comments section for your Golang + HTMX - Creating a Go webserver video. Is there a way to link that all together so you can have the POST of the form go to a database and automagically update the index.html using HTMX with the new record? Can't connect that dot for the life of me! Thanks for your content - loving your Go + HTMX stuff
Thank you for your invaluable content! I've been a long-time viewer, learning so much from your videos. I'd greatly appreciate more Wagtail CMS tutorials, as there's a scarcity of quality content online. Your expertise would make a significant impact. Gratefully looking forward to it!
at 6:57, you magically add data, how?! I'm getting an error when I try to go to the admin panel at /admin/core/todo/, is it because I don't have any data in it yet?
I really like the way you going straight forward to what we are expecting for from you when we read the titles of your videos. Your work its just amazing!
Cool, nice to learn about tools and components that will make Django Templating alot easier and modern! Is there a similar UI library to create a dashboard? Maybe a more streamlined way to integrate ChartJS using alpine or hyperscript or something along those lines?
this video is better than before, and can you add more form like django inlineform, incloude main form and tow or more subform, and subform can add more rows. crud in one page. Thank you make so many great videos!
Hi comrade! I searched for a video about django's formset. For example, you sell stationery and issue invoices. So, the database contains Items table (field 'name') and an Invoices table (fields foreign to name and 'Quantity'). At the frondend, user create a new Invoce, then add line by line Items, and then save it by one button. Also, user can select any existing Invoce and edit it. There must be a way to freely using different widgets at this formset, as data, select2, and another. Can you point me at existed of your tutorial or, maybe, this is an interesting theme for create a new one? I watched your video "Django & HTMX - Dynamic Form Creation and Submission" but I can't imagine how to implement the EDIT part. Also, I see two ways for edit - as in htmx examples ('edit button' for each line in table), but I think it will be hard to create a cute "table to form" transformation, and another way (i think it preferable) - as django's native formset, where each line look as form.
@@AlexeyDzuba yeah probably quite easily. Just swap the whole table for the new form and then in the backend on submit revert back, would likely take a bit of view code and a few html files, but seems like an easy enough task