Hello, friend, welcome back.
In a previous video I have already discussed about the things we do, how can display your all the details
with our D model that the details view models?
So now I want to do I want to work for our create view model.
So if you want to working with this create, then first of all, we have to do we have to import one
of the class, one of the building class as a create view, create and then view.
OK, so now I want to do and create one of the class for this one.
So here I just simply defined the class.
I just simply defined as a class and I just named this class as an add musician.
OK, I just simply defined that name as an ADD musician and then it will be inherited without this class
as a creative use.
I just simply defined that weird view.
So here, first of all, we have to do we have to define our model.
So I just simply define that model and then our models and then our models here.
I want to insert this data in our musician tables.
I just simply defined the musician table so far instance this musician will be trying to do and to add
on to the menu.
I want to add all the menu in our neighboring area.
So that is in our best system to do the business general that is a home.
So now I just simply copied I want to take another one and I just name it as the add musician.
OK, I just came out of the admonition that you are ill, we have to create one of the oil for this
one into the fast step name.
I have to create one of the I'm one of the name as the ad.
That means that you are a bad name as a musician.
OK, just name me to that musician.
So now let's do that works and I'll go to our.
You are well into the you are ill.
I just simply copy it and here I just simply pasted.
So it's to be as a musician and underscore musician.
So now we don't need this.
I mean I'd say just simply be morbid and enjoy the view.
I have already declared one of the class, so I have declared that class name as the musician suggestively
copied and now I just simply defining our views.
I have defined the class of that musician and I just name it as hour our musicians because of all in
our business.
Tmall I have already defined that name as a musician.
Right.
So that is our admonition.
So now if you go here, so have only ordered our our musicians to step by step, how that process actually
work.
I want to show you like because I save all and now go to our site now go to a home, go to our ad musician
and do the acquisition here.
You can see now showing soldat or using model from mixed and Class-Based at musician without fields.
That means here I didn't find any fields that are right.
So we have to also define that field data.
So now let's do that work.
So friend, I want to show you how that process actually working then to still very much helpful to
you like here now it's actually calling me to create one of the fields, so I have to define one of
the fields.
So after this, I just simply defending the fields.
All right.
I just simply to find the fields and the field area.
What do you want to visible.
Sound visible what?
That I don't think that's one of the first name data.
That means that's all that our database will name as a first name and then the last name.
Right.
So I want to insert all the data.
If you go to our database, if you go to our musician into the musician, that is our first name here.
I want to create in this data.
I want to insert last name, Gotye, and also I on the inside that instrument data.
So I just simply defined as a fast name field, last name field, and also I want to insert our instrument
so is simply the front of the instrument.
So now what exactly it should be.
Ask like if you click on to save all I ask because I save all and now if you refresh it now can snowshoeing
out another road there is a template does not exist because of all.
I didn't create any template and also it's no suggested by default.
One of the name you can see by default is created one of the name as a musician from the artist Daniel.
That means you it's asking you to create this type of one of this Tamalpais.
So now I want to do that work.
So here I just simply copy it.
So now in our final step, it's asking me to create this SGML.
So in our first app that that see the first step, how much is it?
As you can see, everything actually commanding on to now in our faster area.
I want to create new files and I just named that file.
I just name it as a musician, form that e-mail and I just let's save it.
So here, first of all, we have to do we have to add our basic things.
That means here we have to add our these extended basis HTML and also we have to end it.
So to simply copy it and now after this, to simply finish it so that we don't need this, I just simply
remove some of the things from here that is better this html, I remove it OK.
And here I name it one of the name, I just defined that as three tag and here I define it to add new
musician.
But here, one thing spent by default, as I told you, by default, it's automatically created the
file you can see automatically suggested on the file as a file stamp and a musician form protest.
But here you can see previously I have added the template.
So here I load this template so that, no, I didn't load any template.
But if you now click the save all by default automatically, you should be getting out this file.
OK, that means our musician found a file like show you like if you know refresh it, you can see by
default is actually getting our D file.
That is our e-mail I have created.
That is actually the suggested one of those Tamalpais as a musician form by default is getting that
file and display this file name.
That is our admission.
So you can see that it's now showing our add new musician.
OK, so it's automatically actually defining these parts of our better I want to do and I don't want
to take any risk, so I just simply add these things also on here.
So here I have created our D file name that is our musician form.
So A simply defined as a musician and then our form
site is simply defined.
That musician formed that this.
I hope you can understand about it.
So not only have to do we have to add one of the form in our musician form area musician e-mail to now
go to our musicians, Jammal.
And here after this I take the form and here we don't need any class and also we don't need any action
here.
I only want to take that methode will be as opposed to I just simply defined the post.
So friend, here you can see it.
I want to create some of the forms.
So into this area we have to load this form.
So here that is our models and that is our musician.
Right.
So here I have using that create view.
So when using that we view plans by default use actually passing that all that form data with the forms.
So here I want to use it.
So I just simply use that form.
So with this form also, I want to make the things as a one by one.
So you have to define as as underscore paragraph.
Right.
I think you already know about it.
And also we have to pass that CSF say, to simply define that CSF, see CSF, underscore Tolkan.
And also after that, I want to do I want to take one of the input tags for the submits.
I just simply define the import and text will be at a swap meet and I just simply defined that name
will be at the submit and I just simply define that value.
I defend the value as an admission.
OK, just name it as an admission.
And also I define better on the class.
I define the class as a return between primary, OK, between between primary and between s.m.
That means a small size.
So now let's check this out.
As I told you, with this art form automatically, shall we get our all that musician form table data?
That means automatically we so be getting all the data.
Now let's check this out.
Clear to save all.
Check our server, everything is running, will now go to our home, go to our ATM machine.
Yes, you can see your friend automatically is getting all that our feel that that means tainted ammunition
that had the three field at the first name, last name and the installment you can see surpassingly
getting the first name, last name and the installment.
So now here, if you pass any data like here, it defined as a test one, OK, namely to the test one
and test two or test one.
Actually better.
I just simply find another one in a store domain name also the test one.
And now if you add this mutation now you can see some of the arrows as either provided that you are
and defined to get absolute zero.
That means we have to do we have to add our teeth, get absolutely all methode into the model area.
So already is actually providing all that in this direction that you have to follow.
OK, that means here now we have to add this, we have to add this function in our model area.
So now go to our model.
So go to our model.
So if you go to application and application, that is our model.
So that the model area after this, OK, that means our mission model.
So here, OK, here after this, I want to do I want to create another function as a dev and then our
function name, our function name.
I have defined as a get absolutely.
Or so already.
It's providing me this information.
We have to create this function on our model area.
So I just simply define our this method as a gate.
Absolutely.
All right.
So now I want to do and define as I make the things as a self say, just simply defined as a self because
of all I think you already know about it.
Why I'm actually using that self because of all I have created another method, another function in
our one of the class areas.
If you create any function into the class area, then you have to make the things as a self, right.
So now it is simply defined as a self.
And then we have to do we have to return it.
We have to return it.
And before it ended here, I also want to return it with the reverse.
So I think you already know about it.
So I have to have the input that developed.
So I just simplified the form and that Django and then that you oriels into the orders from the Urals.
You have to import our divorce.
OK, I just simply defined the reverse.
So now I want to use this reverse.
With this reverse I want to define that is already what that means here.
I want to do in this form will be submitted.
OK, like here, if you go here with this form that means a musician form will be submitted.
I want to do this, will be directed to our home.
OK, so if you want to display then in the reverse area, I want to do I want to pass our name.
That means that you are still in the DRL.
I have defined that name as a fast, so I just simply defined our fast step.
And after that first step I want to do to pass it to our which pays our deposit to our index.
So that is our name had defined this part as the index.
So I just copied and now in our model.
So here I just simply defined our index are different.
So I just simply defining it and that's all you have to do.
Now let's check this out.
If you click the save all of us to fill out the check it.
Yeah, everything is running well.
So now I want to insert some of the data if you now go to our home.
And you can see our previous data is already inside it, so now I want to add our new one.
So now I just name it as a as a Johnny Carson.
OK, and then I name it in a statement as a harmony, OK, just name it as a harmony to know if you
want to add that musician.
Yes, you can see snow perfectly in Saturday's data.
So that is our John Connor.
And here, if you go to this position, is not showing us a John Can't.
And that is a harmony, a good friend.
That means that we can see how much easily we can insert this data with using our model.
So here I have created this model.
I have created our this model as a clear view.
So with this great view now, we can actually successfully insert the the.
So here I load our form and also polygon that area is actually providing me some of the instruction
that we have to add.
These gave up so that you are a little of the self and here I return it when this data will be inserted
then to be addicted to our Farstad index.
That means you are still seem to have already defined our path as a home for the home.
I have defined that name as the index part.
So now you can see who in this data is inserted after that in said it is selected to our home base.
Right.
And also here, if you want to define this type of functionality, like when this our musician will
be inserted, it should be directed towards a specific musician retail space with the idea.
OK, so also if you want to defining it, you can defining it.
Like right now I am actually past that things to the index.
Right.
So here I have already defined that things on here, the fast tablets rejected when this data will be
inserted in this data will be redacted to our first step with the index piece.
So now I want to pass it with our musician little space.
So if you go to our URL into the URL here, you can see that the musician details, the musician details.
Also, they have I have defined the idea that this will be the key to a specific one of the ideas,
musician retail space.
So now I want to use it.
So here, if you want to pass it, then I also want to show you that things are OK.
And I just simply defined as a musician.
Details.
And then here also we have to define one of the ideas, because here you can see I have defined already
one of the ideas.
So we have to also define all the idea on here.
So if you want to define that idea, then you have to define that again with the key argument that in
the KW and then argument Airds.
Yes.
OK, so with this, you can actually pass it.
So here we have to do we have to parse out this picture.
So I just simply define that RPK idea that means our IDM and then also make the things as a self that
means self.
And with the self you have to define your primary key again.
That is our another primary key.
That means there shall be our world.
That means this one.
And after that, our primary key.
OK, so I just simply defined this part on particular that area.
So that's all you have to do.
Now let's check this out.
If you now click, say I just click to save.
Also before that was actually the key to our Fastweb step index.
So now I want to read it to our musician little space with a specific idea.
OK, that is when this musician actually created by default creating one of the ideas.
So should be key to our that part better.
First of all, I want to check it.
Yeah, everything is well.
Now go here, go to that admission.
I want to define another one as a new test and I just put that name that will last name as a new list
last and the instrument as a new test instrument.
OK, so this step up, one of the name I have defined as a musician.
Yes.
Now, because if and now it's perfectly detected to our musician, details with it.
So that is the musician I have created.
So now for the reasons you can see, I defined as a musician details which will be paired with our ID.
Right.
So now it's perfectly rejected and we split that data on here.
And if you go to the home, yeah.
You can see so perfectly added software, we successfully complete our create position.
How much easily we did that work with using our this model.
So that is our clear view model.
Right.
So, you know, next video I want to discuss about how we can update this.
It's also very much easy how we can do that work.
In our next video, I show that things with the live example.
So thanks for watching.
I will see you in the next video.