No video

Model Form | Django

  Рет қаралды 129,719

Dennis Ivy

Dennis Ivy

Күн бұрын

Пікірлер: 112
@DennisIvy
@DennisIvy Ай бұрын
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@gertvisser2734
@gertvisser2734 3 жыл бұрын
You literally just saved me 6 months of my studies!!!!!!!!!!!!Thanks a lot, best django tutorial ever!!!!!! I have watched about 5 hours input videos but none of them work. And in 6 minutes I can explain to anyone how input and model forms in django works
@SURJEETSINGH-ms9iu
@SURJEETSINGH-ms9iu 4 жыл бұрын
thank u bro struggled 14 hours for this
@dustybest5775
@dustybest5775 3 жыл бұрын
Dude. Thank you! I've been at this for hours and you finally got me there in a 6 minute video.
@devriyaz29
@devriyaz29 Жыл бұрын
ok by just a 6 mins video, we learnt core of django that is connecting Models,Views,Templates This is amazing.
@Canaldozoio
@Canaldozoio 9 ай бұрын
The best channel to learn Django EVER! Thanks for your service, sir!
@lordloneshadow7572
@lordloneshadow7572 2 жыл бұрын
Best tutorial. Concise and pithy. Wish all tutorials were like this.
@skanda2186
@skanda2186 3 жыл бұрын
This solution has a huge flaw. Everytime you just refresh the page, a new Customer will be added to the Database with the last entered informations without even manually pressing the submit button. But it stays a great introduction to the advantages that offer Django's forms.
@Spiritual007World
@Spiritual007World Жыл бұрын
That is the most accurate tutorial (straight to the point).
@peterdavids31
@peterdavids31 3 жыл бұрын
Thanks mate, now I can send messages to myself XD.
@damodar_9_9_9
@damodar_9_9_9 2 жыл бұрын
Great, Using model form classs is always better than class based
@osmankain1508
@osmankain1508 9 ай бұрын
Wow, the way you teach is very easy to learn Django
@peatahayab4352
@peatahayab4352 3 жыл бұрын
Thank you so much, Dennis!
@bibekkhatri
@bibekkhatri 3 жыл бұрын
Will you switch to VSCode?🤷‍♀️😃
@eoinparkinson4224
@eoinparkinson4224 Жыл бұрын
Great. Very clear and concise.
@neckpillow
@neckpillow 2 жыл бұрын
That's exactly what I want... Thank you so much
@palanivelrajan1971
@palanivelrajan1971 4 жыл бұрын
Hi Dennis , You did great job very amazing ....
@DennisIvy
@DennisIvy 4 жыл бұрын
Thank you Pazhanivel :)
@manis7477
@manis7477 4 жыл бұрын
@@DennisIvy How can we style a form coming from a model based
@ajaymkamath8120
@ajaymkamath8120 4 жыл бұрын
Is it possible to style this form to make it look better??
@kevinbadboyz
@kevinbadboyz 4 жыл бұрын
U can use bootstrap 3 (load widget_tweaks django) or bootstrap 4 (load crispy_forms_tags)
@Mark4Jesus
@Mark4Jesus 2 жыл бұрын
This is well done!
@likjou
@likjou 2 жыл бұрын
Thanks man, it works for me.
@milliondollarmotivation6260
@milliondollarmotivation6260 3 жыл бұрын
good Job!
@adrianosdervis5286
@adrianosdervis5286 4 жыл бұрын
Hi Dennis, how can we style such a form?
@abdelhakemabdelhak4624
@abdelhakemabdelhak4624 5 ай бұрын
Thank you!
@abhiadhikari7714
@abhiadhikari7714 2 ай бұрын
Thank you brotherr
@quitrangers
@quitrangers 6 ай бұрын
Thanks bro nice video
@jewelsoncagakit8423
@jewelsoncagakit8423 3 жыл бұрын
Thank you for this video !
@florentinahofbauer3211
@florentinahofbauer3211 3 жыл бұрын
Helped me a lot thank you!
@MiguelDuffy
@MiguelDuffy 3 жыл бұрын
Thanks Dennis!
@mfk1267
@mfk1267 Жыл бұрын
That was clear thanks
@jovinnsanzumukiza7585
@jovinnsanzumukiza7585 2 жыл бұрын
thank you
@prashantgupta9045
@prashantgupta9045 Жыл бұрын
Please guide me on one scenario. In this form how should I apply the onchange on any of field . Means without submit how can I get the value if I'm entering any value.
@tsandbox1
@tsandbox1 5 ай бұрын
txs bro.
@adesinamariam2010
@adesinamariam2010 Жыл бұрын
I love this.
@dizzivoneverec2737
@dizzivoneverec2737 3 жыл бұрын
Very good, thank you!
@user-qy1or2bv8u
@user-qy1or2bv8u 2 жыл бұрын
Thanks
@honeypatel9283
@honeypatel9283 4 жыл бұрын
Hey, data are not retrieved to database please help me
@peterbukowski1577
@peterbukowski1577 4 жыл бұрын
make migrations for model and create a table in youre admin file
@saikatmukherjee8095
@saikatmukherjee8095 3 жыл бұрын
May good bless you.....I am just fucked up for this solutions
@vigneshwaran97
@vigneshwaran97 3 жыл бұрын
Thank you very much
@Chickin
@Chickin 2 жыл бұрын
THANK YOU!!
@unkownknown7156
@unkownknown7156 4 жыл бұрын
Hii How can i get the Inherited foreginkey model field in second filed. #rough example Mode1: Name, phone num place etc fields Model: Name:foreginkey (Model1) Here i want to get model 1 num, place fields also how can u do that .
@Kishikato
@Kishikato 5 ай бұрын
What is the difference between the serializer and form?
@sylyac2000
@sylyac2000 2 жыл бұрын
thanks
@thegrind9628
@thegrind9628 2 жыл бұрын
Thanks a lot. I luv u
@alasermohamad662
@alasermohamad662 3 жыл бұрын
i have do same thing but i have this error .====>> name 'request' is not defined
@wq12654
@wq12654 3 жыл бұрын
YES. Thank you !
@alifbhanvadiya5597
@alifbhanvadiya5597 4 жыл бұрын
How to create form based on select option such that some fields shouldn't be display on 2nd option
@NileshKumar-gu2ti
@NileshKumar-gu2ti 3 жыл бұрын
What to do if I don't want to save the data in database and just use it directly. Like enter your data: and then process the data and print it out on webpage. Please help.
@hemantholeti3688
@hemantholeti3688 3 жыл бұрын
getting OSerror ... i followed each line of code in the video but dont know why?
@Nasseh_K
@Nasseh_K 2 жыл бұрын
Hi Denis...Could you do one about styling django forms
@dipeshmandanka
@dipeshmandanka 3 жыл бұрын
how to beutify form.as_p in django?
@sivasankar-ux3zb
@sivasankar-ux3zb 3 жыл бұрын
i was stucked in a problem that i have different forms on different category if i want to show a form based on the category selection how can i show that form and how can i access that form values
@context177
@context177 2 жыл бұрын
Speedrun djungo mode on
@mazenbenhmida4709
@mazenbenhmida4709 2 жыл бұрын
how can i use template inputs and not default inputs
@guna23785
@guna23785 3 жыл бұрын
Hey .. Can you suggest pls I am good at Python and I build lot of NLP models all working as expected however its all backend . I want to give life to that by adding frontend forms for user input and authentication. Should I go with full Django MVT or should I look at Django API with react or vue based JS front end. Please do consider the learning curve as well .. please make a video how to tie all these together. Thanks in Advance
@FloOpps
@FloOpps 3 жыл бұрын
Hey, need your help, He don't want to show the form in the HTML (he write {{ form }}), idk why, can someone help me fast it's urgent ^^ ty
@aliazlanaziz
@aliazlanaziz 4 жыл бұрын
Dennis plz reply if u have r reading this: forms are basically just what we want to take input from user via {{ form }}? so like we can have multiple fields in models but if he wants to render firstname,lastname and dateofbirth out of many fields then he will create a form including fields firstname,lastname and dateofbirth?
@aakashsharma2394
@aakashsharma2394 4 жыл бұрын
i think u can simpy say fields = ["firstname","lastname","dateofbirth",] this will exclude all other fields you have created in your model and include these three! hope it helps!
@briandethloff2451
@briandethloff2451 3 жыл бұрын
Thanks a lot.
@master-b8437
@master-b8437 2 жыл бұрын
Hi Dennis, thank you for the good work. Please 🙏 I have a request for how to create and migrate a new Model and fill it with data based on save() method from another Model. Thank you in anticipation.
@chelseafan2893
@chelseafan2893 4 жыл бұрын
Hi everyone, why django form doesn't upload or save images but django admin saves?
@goenkaniks
@goenkaniks 4 жыл бұрын
My model form has no vertical scroll bar available. Not sure what did I miss?
@mrutyunjayashiremath5589
@mrutyunjayashiremath5589 4 жыл бұрын
Thank you
@digitaldata-surveying
@digitaldata-surveying 3 жыл бұрын
How can implement multiple models in one view with one to one relationship and shared model Example: I wants to make reports (daily, weekly and monthly) All reports must have a project to report about, and must have two extra models (staff workers and.....) and (machines cars and ......) So I can’t figure the relationship Please help.
@BeautyOfMiddleAndEarth
@BeautyOfMiddleAndEarth 4 жыл бұрын
how can i make the form NOT to accept the same data "same first and last name" more than once?
@LordBott
@LordBott 3 жыл бұрын
Thank u!
@khalidanta2784
@khalidanta2784 2 жыл бұрын
Do you have a tutorial on how to create assessment form in Django?
@vijayalakshmynatarajan1860
@vijayalakshmynatarajan1860 4 жыл бұрын
could you please put a video on django modal forms for CRUD operations
@greetingsgentlemen.8179
@greetingsgentlemen.8179 3 жыл бұрын
I am getting the error NOT NULL constraint failed: what do i do? @dennis ivy?
@apolomachine
@apolomachine 3 жыл бұрын
hi there... how can i do this with models? like class ExampleCreateView(CreateView) how do i implement that?
@roshandaniel9343
@roshandaniel9343 2 жыл бұрын
Dude, for some reason I'm just getting {{form}} instead of first name and last name fields in the HTML. Any one know the reason?
@gunkgoon2488
@gunkgoon2488 Жыл бұрын
idk
@Pichotweb
@Pichotweb 3 жыл бұрын
why people uses the function based views instead of class based?
@shraddha1570
@shraddha1570 3 жыл бұрын
How can we styling and validation to this form? Thanks in advance.
@Asgatin6578
@Asgatin6578 3 жыл бұрын
Bro, the form appears but when i press enter it doesn't work, i don't see anything added in the admin page
@instant4133
@instant4133 2 жыл бұрын
You have to register your model in admin.py Go to admin.py write admin.site.register(Your_model_name)
@deleos3744
@deleos3744 Жыл бұрын
How do we style this??
@meldrickfernandes3645
@meldrickfernandes3645 3 жыл бұрын
Hi how can we apply image field in forms
@LightYagami-ib6fb
@LightYagami-ib6fb 4 жыл бұрын
Wouldn't class based views be more easier to implement here? We could had just used createview instead i guess
@vikassingh-qk5jb
@vikassingh-qk5jb 4 жыл бұрын
how to render datepickerinput from modelform?
@santanumaiti6450
@santanumaiti6450 4 жыл бұрын
Can anyone just tell me how to make my class model immutable?? it'll be really helpful to me
@pilotd
@pilotd Жыл бұрын
Make it a tuple
@thetruereality2
@thetruereality2 4 жыл бұрын
for some reason the Submit button doesn't send the POST request on my django server. Or my django server is not capable of receiving or understanding the incoming POST request idk. Any suggestions anyone?
@samirThapaSRT
@samirThapaSRT 3 жыл бұрын
same problem dude
@meldrickfernandes3645
@meldrickfernandes3645 3 жыл бұрын
If you logout and try to post will it work
@Chokhmah_Learning
@Chokhmah_Learning 4 жыл бұрын
Hi Dennis, Great video. just tell me what are the versions of Django and Python you are using?
@tbzsang1807
@tbzsang1807 3 жыл бұрын
Can I use this method in user registration? Or should I use 'UserCreationForm'? Thanks!
@nitinprajapati1305
@nitinprajapati1305 4 жыл бұрын
What if i want to sent a image to database Using request.FILES
@syedmujeebh6661
@syedmujeebh6661 4 жыл бұрын
Hi dennis, I want to add a datetime field in model that should display's today date . How to achieve it . Please help me out of this problem
@crispmmfood
@crispmmfood 4 жыл бұрын
maybe date_register = models.DateTimeField(auto_now_add=True) inside your models attributes
@PriyaSharma-vf9kb
@PriyaSharma-vf9kb 3 жыл бұрын
Hey ,Your videos are really helpful. I want to you make a video on override django admin model form . Like I have a model with 1 field ...when I click on that model in admin panel form will come with one input box . What I want with this input box I need 3 csv file field so that I can upload three csv to upload other model data. I want to add more fields which are not present in actual model and get this field data so that I can apply my logic on that extra field data.
@PriyaSharma-vf9kb
@PriyaSharma-vf9kb 3 жыл бұрын
If you have this video ...please share with me
@muralidhar40
@muralidhar40 3 жыл бұрын
commendations.
@joemckoy8332
@joemckoy8332 Жыл бұрын
What code editor is this?
@deidarasan2760
@deidarasan2760 Жыл бұрын
Sublime text
@MEHDI.NIAZI66
@MEHDI.NIAZI66 4 жыл бұрын
i have a question can i ask you?
@DennisIvy
@DennisIvy 4 жыл бұрын
Whats your question? :)
@MEHDI.NIAZI66
@MEHDI.NIAZI66 4 жыл бұрын
@@DennisIvy how to access to data in the request.post?
@MEHDI.NIAZI66
@MEHDI.NIAZI66 4 жыл бұрын
@@DennisIvy for example i want check if age field in the form bigger than 18 do somthing
@MEHDI.NIAZI66
@MEHDI.NIAZI66 4 жыл бұрын
@@DennisIvy i have a book model in my app i want to check if volume count of book > 0 create seprate record for each volume of book in the database
@user-eh6jh7wv4q
@user-eh6jh7wv4q 4 жыл бұрын
Русский?
@DennisIvy
@DennisIvy 4 жыл бұрын
да :)
@user-eh6jh7wv4q
@user-eh6jh7wv4q 4 жыл бұрын
мой первый сайт на джанго zpuslugi.herokuapp.com , хочу подучиться и делать одностраничники и скорее всего буду фрилансить потому что у нас в городе как то все хотят php или react с node.js, и естественно буду подглядывать в ваш код)
@ZahidKhan-pf6xh
@ZahidKhan-pf6xh Жыл бұрын
help me dennis everything is ok when i submit form it gives me "POST / HTTP/1.1" 200 635 this error plz help me out
@francisodero1987
@francisodero1987 3 жыл бұрын
thanks
Django Render HTML to PDF | Introduction
4:31
Dennis Ivy
Рет қаралды 56 М.
How To Add Database Forms To A Web Page - Django Wednesdays #7
28:24
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 42 МЛН
Django Skills Roadmap To Getting A Job
17:31
Dennis Ivy
Рет қаралды 67 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 125 М.
Watch This Before Using Django With MongoDB
9:18
Dennis Ivy
Рет қаралды 42 М.
Python Django Forms tutorial
26:54
Dave Gray
Рет қаралды 8 М.
Building Django forms with django-crispy-forms
12:20
BugBytes
Рет қаралды 45 М.
Django Forms: Creating First Django simple form
17:00
Django World
Рет қаралды 6 М.
How I learned Django in 3 Months
8:02
Dennis Ivy
Рет қаралды 346 М.
Django Forms - Save Form Data to Database with Model Forms
10:58
Caleb Curry
Рет қаралды 34 М.
Django 5.1 will be more secure by default
6:53
Dennis Ivy
Рет қаралды 7 М.
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18