Django - Building Form Wizards with formtools and django-crispy-forms

  Рет қаралды 19,518

BugBytes

BugBytes

Күн бұрын

Пікірлер: 106
@melissastrong8656
@melissastrong8656 2 ай бұрын
If I could upvote x1000, I would. Thank you for your content, it is amazing.
@bugbytes3923
@bugbytes3923 2 ай бұрын
Thanks a lot!
@zackmcnelly
@zackmcnelly Жыл бұрын
Underated channel, clear and precise instructions. Thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@mr.h3758
@mr.h3758 2 ай бұрын
Thanks man, You are perfect. God bless
@bugbytes3923
@bugbytes3923 2 ай бұрын
@@mr.h3758 thanks a lot mate!
@yakubuabdullatif4321
@yakubuabdullatif4321 Жыл бұрын
I just discovered your channel. Thanks for all those great tutorials you are putting out on here.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! Glad you're liking them :)
@ajdemoedable
@ajdemoedable Жыл бұрын
wow you are a wizard by reading my mind.. I was just struggling with this :) thanks a lot for the video
@bugbytes3923
@bugbytes3923 Жыл бұрын
Haha thank you!
@anthonykarungu1419
@anthonykarungu1419 8 ай бұрын
I love the way you teaching sir. especially the use of documentation in your tutorials. Very clear and understandable
@bugbytes3923
@bugbytes3923 8 ай бұрын
Thanks a lot! Glad you like the videos!
@seydinaoumarsamabaly1806
@seydinaoumarsamabaly1806 Жыл бұрын
It feels like 2023 is going be a fun year with your caviar tutorial mate 🙌🏾. This is a master piece 🧩. Thank for all. Good job !
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you mate! Much appreciated and all the best for 2023.
@raulcorrear.4128
@raulcorrear.4128 Жыл бұрын
Increible tutorial super claro, deberia tener más me gusta (ya colaboré con uno jeje) Saludos desde Lima, Perú. Incredible tutorial, very clear! It should have more likes (I already contributed with one, hehe). Greetings from Lima, Peru.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Gracias! And thank you for the like! Would love to visit your country some day. Greetings from Scotland.
@ДимаПолушкин-ш6б
@ДимаПолушкин-ш6б 2 ай бұрын
как всегда лучший! спасибо брат!!!
@williamlee6302
@williamlee6302 10 ай бұрын
Very practical tutorial always. Thank you very much.
@StudiofrogPl
@StudiofrogPl 6 ай бұрын
rly nice tutorial, very informative nad useful. Thank You. Yes we want more django forms :)
@bugbytes3923
@bugbytes3923 6 ай бұрын
Thanks a lot! Much appreciated!
@miclemabasie4424
@miclemabasie4424 3 ай бұрын
Perfectly Done, Thank you sir.
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thank you! Much appreciated
@jacob_mp
@jacob_mp 7 ай бұрын
Very Usefull. Great tutorial.
@bugbytes3923
@bugbytes3923 7 ай бұрын
Thanks a lot!
@kaushikkarandikar2489
@kaushikkarandikar2489 10 ай бұрын
Exactly what I was looking for! Very informative video. Cheers
@bugbytes3923
@bugbytes3923 10 ай бұрын
Thanks a lot!
@robhafemeister3100
@robhafemeister3100 Жыл бұрын
Great video as always, would love to see the form preview you mentioned as well.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Rob! I'll have a look at creating a short video on that one too 👍
@koraycodes
@koraycodes Жыл бұрын
Nice work. Thank you.
@bugbytes3923
@bugbytes3923 Жыл бұрын
You're welcome, thanks for watching!
@paolovargasdegasperi6265
@paolovargasdegasperi6265 3 ай бұрын
This is great, thank you so much!
@bugbytes3923
@bugbytes3923 3 ай бұрын
Thanks for watching!
@Hohihiho56
@Hohihiho56 7 ай бұрын
All of your videos are awesome no doubt
@bugbytes3923
@bugbytes3923 7 ай бұрын
Thanks a lot!
@carstenthies9597
@carstenthies9597 Жыл бұрын
Very nice video, very helpful. Would love to see a follow-up about form preview. Thanks.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I did a follow-up on Previews here: kzbin.info/www/bejne/mma8naV-mpWosNk
@fernandtape9363
@fernandtape9363 Жыл бұрын
Thanks for this another excellent video. It'll be good to have a more styled form and differents types of forms. Thanks again.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you very much!
@sisccoa
@sisccoa Жыл бұрын
Congratulations man ! Very interesting. Paulo from Brasil.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Paulo! Greetings from Glasgow.
@sisccoa
@sisccoa Жыл бұрын
@@bugbytes3923 Please, if it is possible for you help me pleaase. How to do if I use forms.ChoiceField not forms.BooleanField. How I fixed cleaned_data = wizard.get_cleaned_data_for_step and condition_dict? I do not want to importunate you. Thank you so much.
@sisccoa
@sisccoa Жыл бұрын
In fact I have 5 forms.
@zawanns
@zawanns Жыл бұрын
Useful content as always, Congrats👍
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@atoprak00
@atoprak00 Жыл бұрын
Nice as always, waiting for full stack app 😁
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you!
@pandemicovid9079
@pandemicovid9079 Жыл бұрын
Thank you sir!
@bugbytes3923
@bugbytes3923 Жыл бұрын
You are welcome!
@sudoscientist255
@sudoscientist255 Жыл бұрын
Bro how tf you always know exactly what I've been reading about and trying to figure out XD
@bugbytes3923
@bugbytes3923 Жыл бұрын
Haha good timing ;) Thank you.
@sudoscientist255
@sudoscientist255 Жыл бұрын
@@bugbytes3923 Perfect lol. Literally started looking into formtools yesterday to implement product attributes like in django-oscar. Weirdly enough, same thing with htmx and the webcomponent related packages. Thanks for the great content! Learn more in every one of ur vids than hours of looking through SO, docs, source code, and asking gpt3
@grant4458
@grant4458 9 ай бұрын
Excellent video as usual. Yes please to more form videos. Is it possible to have duplicate forms - lets say you have a list of goals, how would you dynamically add more goals to the wizard process? Would you create a new page for each goal or would you handle that on a single page? Probably a single page come to think of it. How would you handle that BugBytes?
@FirdausAziz
@FirdausAziz Жыл бұрын
Always enjoyed your content. Kindly do something on the complete ecosystem: Django + HTMX (for AJAX) + HyperScript (for other dynamic aspects) + TailWind
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! That's coming up before summer for sure.
@rangabharath4253
@rangabharath4253 Жыл бұрын
Awesome 🙂
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you!
@JustinSpryce
@JustinSpryce Жыл бұрын
Great lesson
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you!
@Schlumpfpirat
@Schlumpfpirat Жыл бұрын
Great video as always 👍🏼 Now in react please; seems much easier to handle in the backend! If you have to jump through that many hoops to make a simple Wizard in Django, I'd think it's the same effort to do it in React
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks! I haven't done anything with React on the channel yet, but I guess it'll happen at some point... 😄
@vivaldi-qo7xj
@vivaldi-qo7xj Жыл бұрын
thanks. its useful.
@bugbytes3923
@bugbytes3923 Жыл бұрын
you're welcome!
@Adroit931
@Adroit931 Жыл бұрын
Good video ;) worth to add atomic transaction for db operations
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks! And that's a very good point! The entire done() method should really be wrapped in a transaction.
@aashayamballi
@aashayamballi Жыл бұрын
thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
You're welcome!
@DMUT-c3e
@DMUT-c3e Жыл бұрын
Thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks for watching!
@repotranstech
@repotranstech Жыл бұрын
Good video as usual.When is the complete Django,htmx , alpine project due?
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks! I hope to start releasing that in the next month, but it'll likely be around April.
@dymastro788
@dymastro788 Жыл бұрын
@@bugbytes3923 thanks
@victorjoseph5757
@victorjoseph5757 Жыл бұрын
nice work. For me, I'd rather stick to htmx than this. After watching your playlist on it, I'm so loving it
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you!
@garidodo272
@garidodo272 Жыл бұрын
is it possible to present a single model into multi-step forms, say 3 forms for model Employee?
@bugbytes3923
@bugbytes3923 Жыл бұрын
Good question. Yes, this is possible, but you'll have to build three different Form subclasses (NOT ModelForms) and then combine the data at the end in the done() method.
@garidodo272
@garidodo272 Жыл бұрын
@@bugbytes3923 thanks
@developershub2024
@developershub2024 9 ай бұрын
@@bugbytes3923 i have been looking for this ...... but what do you mean by building three different Form subclasses (NOT ModelForms) and then combine the data at the end in the done() method
@hoschi60
@hoschi60 Жыл бұрын
Thank you for your work and everything you "return to the community". The niche which you found yourself is excellent - especially htmx helped me a lot. I started following you, when you had just over 3k followers. You well deserve the growth of your channel!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Adriano! Really appreciate that nice comment - glad the channel has helped!
@hoschi60
@hoschi60 Жыл бұрын
Btw. did you think of extending this tutorial with an htmx/modal tutorial? Or is that straight forward and easily implemented? Guess what I am working on right now 😂
@montecristo31
@montecristo31 Жыл бұрын
Thanks!
@bugbytes3923
@bugbytes3923 Жыл бұрын
You're welcome, cheers!
@juniorsemerzier660
@juniorsemerzier660 Жыл бұрын
does it work with django-widget-tweaks?
@bugbytes3923
@bugbytes3923 Жыл бұрын
Yeah, for sure!
@ToddPerrodin
@ToddPerrodin Жыл бұрын
This is a great tutorial. Do you think this will work in an application that uses mulitforms?
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I'll be honest, I'm not sure what multiforms are, really. The idea behind the wizard is to take multiple forms and submit them all in one staged workflow. Are multiforms similar to this?
@ExcellentSports-w2k
@ExcellentSports-w2k Жыл бұрын
Hello sir, my form is not getting saved, done method is not working. Please help
@bugbytes3923
@bugbytes3923 Жыл бұрын
What code do you have in your done method?
@Altar-of-God
@Altar-of-God Жыл бұрын
Hello! I have difficulty saving when I use the def done(self, form_list): function
@israasalameh6879
@israasalameh6879 Жыл бұрын
Hello, Great Tutorial ! especially I'm working on register wizard : my question is how to save user object based on all form_list ? I mean how to do something like this: user = form_list.save(commit=False)
@seydinaoumarsamabaly1806
@seydinaoumarsamabaly1806 Жыл бұрын
Hey mate, here is my question : Can we have a different template for each form in the form Wizards with formtools (django-formtools) ? If yes, please make a tutorial to show us the usage thank you.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Hey mate. Yes, for sure - you can have a template for each step in the form wizard. I'll try and create a short demo!
@seydinaoumarsamabaly1806
@seydinaoumarsamabaly1806 Жыл бұрын
Thank you in advance my dear, I really need it.
@luckykadewere5452
@luckykadewere5452 Жыл бұрын
what about using a drop down list within a wizard so that it should be having a different next page based on the option selected on the drop down list
@christianraould4471
@christianraould4471 2 ай бұрын
thanks
@bugbytes3923
@bugbytes3923 Ай бұрын
Thanks!
@brunoaraujo7016
@brunoaraujo7016 Жыл бұрын
Just curious - where's your accent from? I'm thinking Scotland, but I'm not sure if I've heard it before... 🙂
@bugbytes3923
@bugbytes3923 Жыл бұрын
Hi Bruno - yes, Scotland 🙂 Hope the accent is not too difficult to understand!
@brunoaraujo7016
@brunoaraujo7016 Жыл бұрын
Not at all! Very clear and interesting accent. Thanks for replying
@ExcellentSports-w2k
@ExcellentSports-w2k Жыл бұрын
in my done method class MultiStepFormView(SessionWizardView): form_list = [ TimeSlotForm, DetailForm] template_name = 'sm_appointment/index.html' def done(self, form_list, **kwargs): form_data = [form.cleaned_data for form in form_list] print(form_data) return HttpResponseRedirect('form submitted')
@frameff9073
@frameff9073 Жыл бұрын
thank you
@bugbytes3923
@bugbytes3923 Жыл бұрын
You're welcome, thanks for the comment!
@yakubuabdullatif4321
@yakubuabdullatif4321 Жыл бұрын
I just discovered your channel. Thanks for all those great tutorials you are putting out on here.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@jyothisy3581
@jyothisy3581 Жыл бұрын
Hello sir, my form is not submitting, done method is not working. Please help
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Using bolt.new and Supabase to build an Instagram clone
1:19:48
Projects | Polars Introduction | Surfalytics
44:59
Surfalytics TV
Рет қаралды 78
django-cotton - Modern Components in Django!
20:41
BugBytes
Рет қаралды 10 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН