Try DJANGO Tutorial - 23 - Django Model Forms
HTML-код
- Опубликовано: 7 ноя 2024
- Try DJANGO Tutorial series is here to teach you Django bit by bit.
Playlist: • Try DJANGO Tutorial Se...
Code: github.com/cod...
Subscribe: joincfe.com/you...
Pro: kirr.co/ni5fia
Mate, a godsend. I appreciate how you're showing what needs to be done without explaining too much then later on you'll explain how all the elements connect.
i was just not getting model forms and databse right ...but u made it so easier....got me saved...thank you so much..
Great I request you don't stop to make this series i'm impatient to your every video. 🙏
after watching your videos , i have started to regret that i have wasted quite some time watching others videos , but could not reach out to yours, but thank god i am here .
Keep up the good work! Your videos help beginners a lot, i refer them to people who want to start . :)
This was great, short and clear explanation of the topic🤓 great to see the "errors" realtime so we know what to expect.
Thanks a lot. Best tutorials on youtube.
you explained it very good , for those who are new on this channel , if you stuck just google it and keep watching his vedios , he explain it quick and easy way , not other channel you waste time in just saying subscribe subscribe subscribe , great work pure experience .
Thank, the way you explain it becomes clearer
that intro though .
nice series!
your tutorials are just awesome!!! its so clear, thank you!
Very helpful!! This obviously deserves more views.. Thank you for your amazing videos!
You save my LIFE !
You made it really very easy.
Ha, fancy intro music XD Great work, thank you so much for creating this playlist!
Please continue this series..., Sir
As always, brilliant
U are a legend man no words.. please how do u add the productimage model to the form so that users can upload images
thank a lot man
pls dont stop make this sries
great person for ever
how can i auto-fill a foreign key field and hide it in the form?
Thanks for this! Your tutorial has made everything so clear now
Hey, in your tutorial for Django 24, i was expecting you to explain what class meta model and fields and what they do. I tried to go to djangoproject, but they don't really explain it as well. Is it ok if you can explain a bit and reply here
Thank you. Very helpful.
Thank you!
How can we apply css to such forms, as we know that they're paragraph tags, but they do not have any class or id, so that we can target each and apply some css and get a desired designed form?
why my informations are not saved in database why?
Hi I have a question I did all you did and also checked the code but I do not get the boxes to add input and save data and Idk why:(
thank u this is amazing,the way you teach
When the elements are dynamic in nature like drag and drop name , customer .. how do we define Class models , please help with some other vide.
I tried the same exact thing, it does get requests but it doesn't save to the database(havevnt checked through database viewer) and it doesn't even show up in the admin pannel
How do you add multiple django forms to one page?
Dude you are awesome
yeah i'm gonna say it I LOVE YOU JUSTIN thank you so much
Can u help with this, Iam using Sublimtext editor, I cannot use jinja2 code, sublim can't access the the code. Eg: Have used {% csrf_token %}, It is giving an error like this
[Forbidden (403)
CSRF verification failed. Request aborted. CSRF token missing or incorrect]. How can I overcome with this issue, should I have to install any package. Please, help me with it.
How do I specify boolean in modelsForm?
sir while creating a form error is prompt that ModelForm could be created either by using fields or exclude
The music though 😎😎
i am getting an error of KeyError: ('products', 'products')
thank you pleas i have Q how can i insert data into table in postgresql ???
How can i prevent form from submitting when I refresh the page?without redirecting...
write some frontend javascript.
I am also facing the same problem and i don't want to write Js for this, is there any other way??
@@sarfrazkhan8057 I figured that out.Just use HttpResponseRedirect and redirect to the same page.
@@sarfrazkhan8057 Validate the form and redirect only of it is valid, else render response as usual.
Somewhat better, not that much...
Thank you guys, otherwise it's going to take more time...
I wish I could hear your answer... I'd like to save my form data to a csv file. Is it possible?? +CodingEntrepreneurs
docs.djangoproject.com/en/3.0/howto/outputting-csv/
Hi sir Nice expo Thanks lot!!!!
Great ... Aren't you going to cover class based views? All of your series are good. But this one seems more organized ...
Thanks and yes! I am working towards it I promise
can you add choice field dynamically and also the admin can add the items in choices. like in that project add choice field in model than admin/user can add items in choice field.
please
nice vedio,
ok so if makemigrations, and migrate are executed at the same time, why isnt there a command that do both ? is kind of annoying to write both down every time.
Well. makemigrations prepares for database changes. If you mess up on the Django side, you won’t automatically mess up the database too. Thus, two commands.
you may also, anytime go through django core files and change that command to whatever you like if you are brave enough.
@@ericcartman2294 thanks for the tip, but yeah! still dont feel brave enough to do so, nevetheless it's been 5 months since that question but i understand django better now =). thanks
For me It keeps saying "This field is required" above every field although I entered something in every single field. Can anyone tell me why this keep happening. I already made 2 new Django projects but it keeps happening...
Can't get the button to show up on the page for some reason :/
Nvm. Got it figured out
the products are not adding into.
I made the form... but for some reason it changes the order of fields. Sometimes title is first, then description and price and sometimes it puts them in different order.
KenJi that doesn’t make sense. What have you done to customize the form?
IDK... I restarted the server... and now it looks fine. I didn't change anything, everything is default
thanks a lot..so when we saved the form we used form.save() . my question when we use form.save(commit=True) ? is it optional to use any? Thanks
It 's very interest, you can teach me in private on django ?
Sadly mine didn't update the database :(
Have you written 'method = POST'? in html template?
cannot see video
everyone uses class Meta, but no one can explain it.
can u do series about angular 6 from scratch till being professional i fucking want that ,
I am getting valueerror
Like like like
dai suthama puriyala da
Model X
gangnamstyle
Django channels
Check out my channel! It’s there
Have you ever thought about armwrestling,? You have massive hands.
World champ 3 years in a row. Look it up
@@CodingEntrepreneurs 🤣🤣
So you know a way how to store checkboxinput to a specific non primarykey field in django like ib this question stackoverflow.com/questions/61125585/django-sql-server-hot-to-bind-checkbox-values-to-a-specific-id-in-database ?
When you use some line or something in the next video and say we will use more of these and will explain then...please don't!! Just give a basic gist of what it does, if you can't go much in detail. So, some Users like myself may only want to watch a part of video and don't have to actually watch the complete series.
P.S.: I just wanted to create a form for some other project that I'm working on. So i didn't want to watch complete series.