Django & HTMX App - Display Transactions | django-filter FilterSet
Vložit
- čas přidán 5. 06. 2024
- In this video, we'll build a list page for the user's transactions, and will style it up with TailwindCSS and DaisyUI.
We'll also build a FilterSet class in Django, using the django-filter package, to allow us to easily filter transactions using a form on the page.
Github: github.com/bugbytes-io/Django...
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
ko-fi.com/bugbytes
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:16 Github Repository
02:58 Creating Django view to display transactions
05:40 Adding template for transactions
08:42 Adding DaisyUI table for transactions
15:46 Adding default ordering for transactions in Django model
17:33 Adding django-filter FilterSet class
28:19 Restructure page with TailwindCSS column system
31:36 Making transaction list page mobile-friendly
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: bugbytes.io/posts/
👾 Github: github.com/bugbytes-io/Django...
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
DaisyUI: daisyui.com/
HeroIcons: heroicons.com/
HTMX: htmx.org/docs/
Django-Filter: django-filter.readthedocs.io/...
#python #django #webdevelopment
Playlist link: czcams.com/video/6OlILeP9GKg/video.html
Github repository: github.com/bugbytes-io/Django-HTMX-Finance-App
It's always a pleasure to watch your tutorials. There is always something to learn. Thank for all Master 🙌🏾.
Thanks as always! Much appreciated mate.
I come from Mobile development background, Now learning Django. Your videos are super helpful. Keep going.!
Very enjoyable follow along!
Thanks a lot Tom!
I've run into some dependency issues using Python 3.12. Wasn't too difficult to solve, but beginners might struggle a bit. Watching this series for a Django refresher and to learn me some HTMX.
Thanks for part 2! Looking forward to part 3... 😁
Thanks a lot for your videos and effort. A consideration, I think it would be best if you do a md file in your git repo with at least the playlist or the videos links. Thanks again.
🎉 Thank
Hi, It would be great to make a dedicated video about Django-allauth production ready app.
Thanks for the suggestion. I’m doing some allauth video prep at the moment for a deep dive into the package!
Thank you very much.
Just small note: seems that the current version of widget-tweaks is incompatible with Django 5.0 (got an error in the template: AttributeError 'super' object has no attribute _set_choices . Uninstalled django 5 and install 4.2, works fine!
You are absolutely right.
Had the same error, and upgraded django-filters to version 24.2 which solves the problem for me in Django 5
@@wer_gumizz1012 Agreed. Works after upgrade of django-filters to 24.2 in requirements.txt for Django 5.x.