ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
How to create async Django forms in 2 minutes (with Alpine.js) ⛰️
ฝัง
- เผยแพร่เมื่อ 27 ก.ค. 2023
- Hi fellow Djangoers 🐎
Here's a video showing you how to add async forms to a Django templates (no page reload) in 2 minutes. The guide uses Alpine.js to add minimal, neat javascript. 🏔️
Here's my blog post, containing the code:
www.photondesi...
Why is the view port jumping around with the mouse makes me dizzy.
Yeah - thanks Tochim. Lots of people have mentioned this. I’ve changed this for all my other videos
Hi Tom, nice video.
Would you prefer alpine over HTMX for creating forms in Django, is there any significant difference in terms of flexibility and performance?
Thanks @luizetulio4888 ☺️
On your question, I'd use Alpine for the form if it was particularly complex, involving many fields that depended on each other.
HTMX would apply well most of the time, and HTMX is faster to start and easier to test than Alpine. There's no difference in performance, but Alpine is more flexible.
I did a video on creating a form with HTMX (in 90 seconds this time): th-cam.com/video/z67XaHvYexY/w-d-xo.html
In short, I'd recommend trying HTMX first.
You think Django still worth to learn?
Yes, though it always depends on what you want to do. What do you want to do?
@@tomdekan I want to use for small business they can have live data with charts and maybe ML models for inventory, plus integrate Google ads and Facebook ads.
Got it. Then yes - Django will be great for your use!
getting a bit dizzy with all that panning of the half zoomed in screen
Yeah - thanks for the feedback. Many others have said that as well. I’ve slowed down all my other videos 🙂
thank
You're welcome!