Hello, friend, welcome back.
In this video, I want to discuss about that foam and foam is very important, one of the part in any
project, right?
So now in this video, we'll discuss about that foam.
That means that triangle forms how can create that foam and how can working with this is step by step.
I will show you that things with a live example for doing this.
First of all, I want to do want to create one of the foam piece.
So that is our project into this project.
That is the template into the template I have already created, along with the template file as a first
step and into the fact that I have already created that index e-mail.
So now I want to do I want to create another form in our fast area.
So I just click on the new file and here I just name it as a form dot e-mail.
OK, I just name it as a form dot e-mail.
So don't I just simply open it.
So that is our form is Jammal.
So first of all, here I want to do to define our e-mail text.
So here is simply the front of the e-mail and here I put some of the title as a form.
OK, and then that is our body area.
So if you already know about that, it will be the e-mail.
I think you already know about it.
So I just simply defined as a story.
OK, so here I define as a story and here I just pulled some on the street, some of the text as a this
is a form.
OK, so this type of the text and also after that I want to do and define all of the form.
So I just simply define the form.
And here we don't need any class.
OK, so in the form that's all the action.
So if you put that action, the index estimates, that means this data will be redacted to the index
based so that no, I don't want to defining it.
So I just make the things as a blank.
And also they have the two types of methode.
One will be as a post methode, another will be as a get methode.
So if you want to send some of the sensitive data, then you can use that for smattered other than you
can also use that get my.
So if you're working with the search option then you can use that also.
OK.
OK, so right now I'm using that post and also here I defined that because then I just make that action
as an MP.
That means whatever the things I will do, in particular that area each will be working, in particular
that base.
OK, for the reasons here, I just simply defined as a blank.
And after that and to do I'll take all the level, OK, I just take one of the level and with the level
four and here I define the text.
OK, I just simply defined as the text underscore field.
So this step up on the field I have to define, I just simply defined as the test that will be our text
as a field such as simply defined in the field.
So no one to do and to define all of the input field.
I just simply defined as the input and the input type.
I just simply defined type will be as a text type.
And I just named that our field.
So I just name it as a test field.
So I just simply defined as a test and values.
So right now I don't want to put any value aside for the reasons I just make the things as empty.
So now I want to do I want to visible our D form.
OK, I want the visibility.
I want the visibility for the user.
So if you want the visibility, then you have to do you have to go to your first project.
And here we have to work in our views.
Right.
So just simply open it to this view.
I have already created one of the function of the index function right now to do and to create another
one and to create another one.
I just name it as a function name.
I named that function as a form.
Right.
So also here we have to pass that request separately from the parameter as a request.
So after that, what exactly we have to do?
We have to define the diction that our dictionary.
So that simply defines addiction.
And right now, first of all, I want to make the things as empty, OK?
And then we have to do have redundant.
So I just simply defined as written.
Sorry, I just simply cannot return.
Harinder So with this render function I want to do in the past hour the sickest just simply pass that
request.
And also here we have to pass our base, our base I have created in our fast step into the Farstad that
is our form dot SDM.
All right.
So now I just believe in our view of the fast, fast underscore app and the final step I have defined
as a form form dot estimator, I guess.
And I think you already know about it, because we did the same things for our index function here,
because it's the same thing.
So now after that, I want to define that context.
So into this context area, I want to parse our distinction.
So just simply pass it on here, OK?
So to simply pass it.
So here I have defined our view space and now we have to do after that we have to create all the URL
for our D form.
Right.
So now we have to add it to feel to good that our ideals that we see in our fast app, that is that
you what else?
So here we have to create our new one.
So after that, I just simply defined as a popped right into this area.
I want to do.
Find our form name so I from you, you as a form.
OK, so I just simply defended the farm and then also we have to define our views.
I think, you know, we should be very much clear to you because we did this type of work a lot of the
time.
So in interviews, I have already created one of the one of the functions, our function name as a farm.
So I just simply defined our views and that is our form function.
Right.
And also in return to define that mean.
So I just simply defined that name.
And for this one as a farm, OK, I just name it as a form.
Perfect.
So now to do I want to run our server.
So here but I just got it and I just open it.
First of all, I just got to save all and now open our terminal again.
And I want to access I want to run our servers.
So you have to run as with the python, Manny's dot fly and then run server.
Right.
So just enter.
Now, you can see they have over and our Salvati is now running Seiger simply copy it, OK, so just
simply copy it now open our browser so that I discarded OK, and now I just ruthlessly open it and I
wanted to do on Texas our form.
So here I have already defining it.
So I have defined our what else I define that you are name as a form.
Right.
So I just simply copied and now here after that our territory that is our victory.
I just simply accessed that formula on the enter.
Yeah.
You can see that is actually that this is a form and that is our TextField.
That means we successfully lowered our installed base.
So there is a stable base I have created so that there are forms into this form area.
I have defined one of the text.
Right.
You can define all the text fast.
And also after that I define the level and then I define all the input field.
So for the results is not showing our text and our level and the input field.
Perfect.
So now here, whatever the things will board.
And after that, if you click on the submit automatically, shall we get this specific input filename?
So here I have already defined all of the input filename as a TextField, right.
So with this text, actually it's recognized as aspecific, this field data.
So if you create multiple input for the input field, you have to define some of the specific name for
this one.
OK.
So right now I'm using that text field for a specific this field.
And also here I want to do do the final of the submit form, the initial better.
So after that, after that, I want to define all of the input field.
Either simplified import and input type will be as is submitted because he from here want to submit
it.
So to simply define it, to submit type and for this input field, I just need me to submit, I just
need me to submit.
And here there is a value into this area I define as a submit.
OK, then it shall be actually visible.
So now if you look at this table.
So now if you refresh it, you can see there have also the submit button so that it was submitted.
I just put that below.
So here that is our value.
I have defined as a submit for the reasons here you can see us now showing our puppet button.
And also here, if you want to define some of the value like here, I just simply define the value as
a DS test.
OK, this is a test.
So this step up, one of the value I have defined as the save all and now refresh it now can see it's
now showing our D value in particular that area.
OK, so here, if you also want to define some of the placeholder, you can also define the placeholder
site.
Right now.
I just simply removed and here I defined that placeholder.
So that is a placeholder, one of the things you will want to put like into your text.
So the step up, one of the placeholder I want to define save all.
And now if you refresh it now, you can see something as our enter your text.
Right.
And also here, if you want to define like right now, you can see they have no particular thing.
And also here, if you want to make this field is a request that means without putting any data, you
cannot press that button.
So if you want to make that feel as if you could, then you can also do that work.
Then you have to do you have to after this.
After this, you have to define as it occurred.
OK, you have to define that things only that that means right now this field is.
So here you have to define some of the input field.
So now I just click as a Savol.
So now if you refresh it and if you make that things as a blank click on the submit, you can see it's
not showing.
Please fill out this field.
So here you should be displayed some of the text.
So without putting any text, you can submit this form.
OK.
So here also you can define that things with the secret.
So now here I want to do and to create two of this field.
One will be as a full input field and there will be for that and use that email.
OK, so this type of tool of this field I want to create for the regions in all level area.
First of all, I want to change that label.
And here I made me to the full name.
OK, at step.
Want the input field and better.
I want to change that our level then be better.
I just name it as a user under its own name.
OK, so far actually for the better understanding I am actually changing it.
If you don't want to change it then.
OK, so I just simply change that for here.
I also want to change that.
Our name as a user name that is placeholders right now.
I don't need this placeholder, so here I just make that field as equal.
OK, and also I do want to take another one.
I just simply copied and here after this I just name another one.
This will be the user email.
And then here I define that.
Far as it used that email and also I want to update our name, that means in beautiful name and updated
as a user e-mail and then here for the email, I wanted to change that type.
So I just simply to find that type will be an email type.
Right.
So I just simply defined by default on the input type as the email type for our email field and the
value.
And also I define make that thing so that he could.
Perfect.
So now if you click the save all I just click the save all check our server.
Yeah.
Everything is looking great now I just refresh it.
Yeah.
You can see the full name, full email and the results have been button so bitter I want to change it.
It will be as user email then it should be better.
So that will be as user email like a friend say to somebody finally use an email.
So that is our one.
And there is another one to know if you can get to save all.
And now if you refresh it.
Yeah, it's not perfectly updated.
So friend here we have created this problem with using that e-mail.
Right.
So in Django they have also some of the by default resources they have, but it's also by default some
of the functions.
If you want to create some of the form with the using the triangle.
So better in the next video, I will show you that things with a live example see step by step will
go more deep because here actually everything will be needed for our project.
So that's all that actually basic things because we will create three project will create one of the
block project, we will create on the social media project.
And after that also we will create all the e-commerce project.
Right.
So everything will be needed for the reasons I want to first of all, share all the basic things with
you.
This will increase your knowledge for better understanding about the triangle.
So thanks for watching and I will see you in the next video.