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
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.
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?
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!
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.
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
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 .
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
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.
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.
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.
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?
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.
мой первый сайт на джанго zpuslugi.herokuapp.com , хочу подучиться и делать одностраничники и скорее всего буду фрилансить потому что у нас в городе как то все хотят php или react с node.js, и естественно буду подглядывать в ваш код)
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
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
thank u bro struggled 14 hours for this
Dude. Thank you! I've been at this for hours and you finally got me there in a 6 minute video.
ok by just a 6 mins video, we learnt core of django that is connecting Models,Views,Templates This is amazing.
The best channel to learn Django EVER! Thanks for your service, sir!
Best tutorial. Concise and pithy. Wish all tutorials were like this.
That is the most accurate tutorial (straight to the point).
Great, Using model form classs is always better than class based
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.
Wow, the way you teach is very easy to learn Django
Thanks mate, now I can send messages to myself XD.
Thank you so much, Dennis!
Hi Dennis , You did great job very amazing ....
Thank you Pazhanivel :)
@@DennisIvy How can we style a form coming from a model based
Will you switch to VSCode?🤷♀️😃
Hi Dennis, how can we style such a form?
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?
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!
That's exactly what I want... Thank you so much
Great. Very clear and concise.
This is well done!
Is it possible to style this form to make it look better??
U can use bootstrap 3 (load widget_tweaks django) or bootstrap 4 (load crispy_forms_tags)
good Job!
Thanks man, it works for me.
That was clear thanks
Thanks Dennis!
Thanks bro nice video
Thank you for this video !
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.
THANK YOU!!
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
What is the difference between the serializer and form?
Hi Denis...Could you do one about styling django forms
Thank you brotherr
My model form has no vertical scroll bar available. Not sure what did I miss?
Thank you!
Helped me a lot thank you!
How to create form based on select option such that some fields shouldn't be display on 2nd option
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 .
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
I love this.
May good bless you.....I am just fucked up for this solutions
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.
Very good, thank you!
how can i use template inputs and not default inputs
getting OSerror ... i followed each line of code in the video but dont know why?
Hi Dennis, Great video.
just tell me what are the versions of Django and Python you are using?
Can I use this method in user registration? Or should I use 'UserCreationForm'? Thanks!
How can we styling and validation to this form? Thanks in advance.
Thank you very much
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.
hi there... how can i do this with models? like class ExampleCreateView(CreateView) how do i implement that?
Do you have a tutorial on how to create assessment form in Django?
YES. Thank you !
I am getting the error NOT NULL constraint failed: what do i do? @dennis ivy?
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
how to beutify form.as_p in django?
Hey, data are not retrieved to database please help me
make migrations for model and create a table in youre admin file
i have do same thing but i have this error .====>> name 'request' is not defined
Hi everyone, why django form doesn't upload or save images but django admin saves?
how can i make the form NOT to accept the same data "same first and last name" more than once?
How do we style this??
Hi how can we apply image field in forms
could you please put a video on django modal forms for CRUD operations
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
maybe date_register = models.DateTimeField(auto_now_add=True) inside your models attributes
how to render datepickerinput from modelform?
If you logout and try to post will it work
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.
why people uses the function based views instead of class based?
Thanks a lot. I luv u
Wouldn't class based views be more easier to implement here? We could had just used createview instead i guess
Speedrun djungo mode on
Bro, the form appears but when i press enter it doesn't work, i don't see anything added in the admin page
You have to register your model in admin.py
Go to admin.py
write admin.site.register(Your_model_name)
Thanks a lot.
thanks
txs bro.
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?
idk
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?
same problem dude
Thank you
What if i want to sent a image to database
Using request.FILES
What code editor is this?
Sublime text
Thank u!
commendations.
i have a question can i ask you?
Whats your question? :)
@@DennisIvy how to access to data in the request.post?
@@DennisIvy for example i want check if age field in the form bigger than 18 do somthing
@@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
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.
If you have this video ...please share with me
Can anyone just tell me how to make my class model immutable?? it'll be really helpful to me
Make it a tuple
Русский?
да :)
мой первый сайт на джанго zpuslugi.herokuapp.com , хочу подучиться и делать одностраничники и скорее всего буду фрилансить потому что у нас в городе как то все хотят php или react с node.js, и естественно буду подглядывать в ваш код)
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
thank you
thanks
Thanks