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!
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.
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 .
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.
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.
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.
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?
мой первый сайт на джанго zpuslugi.herokuapp.com , хочу подучиться и делать одностраничники и скорее всего буду фрилансить потому что у нас в городе как то все хотят php или react с node.js, и естественно буду подглядывать в ваш код)