I'm sharing my journey with HTMX and Django through blog posts, a "learning in public" experiment. It's mainly a reference for my future self but maybe it helps someone else too!
Here's what I've written so far:
- Part 1 - https://dev.to/rodbv/creating-a-to-do-app-with-django-and-htmx-part-1-583p
- Part 2 - https://dev.to/rodbv/creating-a-to-do-app-with-django-and-htmx-part-2-adding-the-todo-model-with-tdd-1oa2
- Part 3 - https://dev.to/rodbv/creating-a-to-do-app-with-django-and-htmx-part-3-adding-the-frontend-with-daisyui-324n
There's also a repo for it
https://github.com/rodbv/todo-mx
I'm keeping one branch for each part of the article, for reference.
@rodbv Hey there!
Thanks so much for this wonderful tutorial, currently working my way through it and really like how it's structured and your way of explaining things!
Just a note, in part 3 it seems like you forgot to include the HTMX code, the snippet beginning with hx-put=...
This means the resulting code runs fine, but the PUT request is never sent to toggle the todo status. Would be awesome if you could check that when you have some time, keep up the great work!
@robin_kipp Hi Robin! thanks so much for the kind words, and for the heads-up.. you're right, during some edits I ended up removing the most important bit of the post which is the hx-put code :) It should be OK now.
Please let me know if (when?) you find more issues, or if anything is not clear enough.
@rodbv Thanks Rodrigo for your kind response and getting that fixed so quickly, greatly appreciated!
I'll keep working through and happy to let you know if I find anything else, but as already said I really like this series a lot, thanks for taking the time to put it together!