Front and park using bootstrap.
Now I'm going to go with the back and forth.
So today I'm going to show you how you can integrate your form with the back and part.
So today we are going to basically work with the phones using two method.
One is the request method and a local machine and try of the things.
So I moved over here, so I had to find the phone using my phone.
So this is a phone we are made in the previous lecture.
So today what I'm going to do, what I'm going to do, so I'll create a button in this phone post.
So I'll type.
If class is equal to form group here you can see I have to find a phone for each input element.
So form.
Group.
OK, now I'll define a button.
So this button should be type to submit because I'm going to submit this form on what I define.
A class is called a button button primary, and this would give me the default color of the button.
And I type this submit as a button value to be shown on the printed part.
So I move the speech and so this button I right click here quickly to inspect what changes I can do
to make this, this more responsive and better.
So I'll do margin zero or two.
So this is a model auto used to turn to central element.
So this doesn't work by time display block.
This works.
So I'll copy this test quickly and I'll give it a style element here.
It's time and I quickly copied and pasted here and this looks pretty fine.
So refresh this page.
Yeah.
Not a button.
OK, not yeah.
Not a button is in the center and now till I only defined the form and two things I'm missing in this
form is one of the better method and another is the action sort of how you can work with these things.
So we are going to cover in the first I'll go to my file and then you're with it.
So I find a spot here, but some.
My form and know what I'm going to do, submit my form is going to be yours, but I'm going to submit
the form and you start submit my form and name is to submit my form.
OK, nondestructive predefine.
So I want to find us and the final sum in my form and method, in my view file.
So I'll go to pick quickly.
Go ahead.
Death.
Submit.
Request and request that I do return tactical response or let me do one thing, go, OK?
OK, define my dictionary here
and there.
One by one by two wide three.
What I do request.
Don't method.
This would be the value of my right three.
OK, and do one thing and keep this as.
Method on this would be the best method.
OK, so I'll define a disciplined response.
Of my dictionary, I quickly all this thing, so what I'm going to do this with my form, so I'll define
first action, I'll find a method here and that method first we will work with the method and then the
post method.
OK, so this is a great method here and get better and both method have a difference.
So we get this in order to.
What's the difference between the two forces to get an undefined action.
So what I'm going to do, I'm going to use the short hand property to help to specify.
Are you worried?
And the person you are looking at, the person you are, and then a person sign so you can be a little
bit familiar with this.
So I have to find a shorthand notation.
Both calibrates this person.
You are.
Then I'll define a name between this single code.
This is both insane.
Then Culebras says, look, I need to define the name where I have to submit and pass this form.
And the name should be this name is my phone.
And I need to submit my form to this road which has having the names of my form.
OK, so I'll go here.
So now I think this is pretty fine, so I have to follow your ID to submit my form and this form with
this summer to do that.
OK, that road.
Now I haven't bothered to find the method as an action.
Is this.
OK, now what I'm having the I'm having an error and that is not to find the value of my keys in my
dictionary.
So what you can do.
OK, course what I do, I come in this out and come this out.
OK, so I'll tell you, show you one thing.
OK, line.
I'm having an error.
We will talk to you a line to.
Than.
I'm handsome ever.
Let me check.
OK.
No, overnight, sort of I'm sorry, sorry, so not I'm OK, so my form is already being summoned.
So what I'm going to do first, I've only made a request or method.
So what I'm going to do.
I'll make a test.
Test, OK, I'll make a different value that's evolved.
Now, I submit my full.
Not what you can see here.
Let me.
I'm having some issue on my phone.
OK?
The subject my has been defined and motherhood has been kicked.
OK.
And.
I did find the warn of some in my home.
Ron.
I knew it first day, but, yeah, no, this is very divine.
OK, so now this is fine, totally fine, OK.
I had some issues.
I restarted myself.
No, it's pretty fine.
OK, so what I'm going to tell you that I'll quickly grab the things that I define a year or seven before
then.
This is my urine and now I have to find the action to disorient some reference here and method get.
So that's when I went to this abuse or.
My phone was caught.
So when I went here, what I saw, I done a dictionary adjacent response, only making the method.
So this method was basically.
So what I got here, the method is Kit.
OK, so how are you going to derive the values?
So this is a one and two, so what are the main important thing, what would it be?
So what you can see in the get method, you can see the name of the response, OK, sorry, the Parramatta's
parameters, which are being.
So I had my text, which I had put the data test and I had my text area, which I put to the test.
OK, so you can see the name of the variables.
So these variables are being separated by a question mark and the road is being separated.
My four.
OK, so what I'm going to do how you can use these values request.
Don't get on the first is my text, OK?
And this is the variable.
I'm being different and another is my text area.
OK, now I'll do one thing.
So so I'm missing a comma sign.
So that's why it's swingman error.
Now this is pretty my request to look at what's going on here.
OK, not fine.
OK, now I'll move to my phone.
My mom.
I time new data, new Diba, No.
Here you can see why one does not define.
One is not defined.
OK.
Why is it.
OK, ok, ok, ok, OK, so this is
ok, ok, I'll find new data and new duba and I submit this for you.
Now this is pretty fine.
OK, so I apologize for all the errors.
OK, now this is pretty fine.
So you can see I move to this, submit my home and the parameters being my text, which has this data,
new data you can see here, OK, this is not the school.
And then I had another parameter, my text area here you can see with the values New Diba.
Now here you can see this is new Diba, OK.
And the method is get.
OK, so, so this is the difference here.
You can see the parameters on the upper hand.
So, so here you can see on the around the parameters have been visible do so.
This is the first property of the get method.
So not another thing we are going to do, we are going to change this method to post.
OK, so this is post.
OK, now what I'm going to do a request.
Don't post.
So this will be post.
Request dot post.
OK, so this is another change I'm going to do, not the difference between the two first met and get
change and now the rebels on this road won't be visible on the perimeter.
OK, so I go my fault.
Okay, I'll try some here.
Python jangle framework.
Now I submit this form.
OK, now it says CRF verification failed because when you submit a form with the post method, you need
to define a CRF token.
So I quickly type person, see our own token.
And this looks.
No, this is fine.
OK, so I'll make a submission here.
OK, I'm in error.
OK, I have to open up, I made a mistake, sorry, I made a mistake with the two curly braces.
Sorry, I'm really sorry for this.
So now this looks pretty fine.
So I'll go back to my phone.
This is Python, Python, Django, Pambo.
If not, this is the trainmen erhu.
And with this, I turn by turn, Django.
And now, while some in this.
OK, at this is fine, sorry, so I can see now the variables are being known there on the root, so
the variable parameters are not there.
So that's being hidden in the post method.
Plus, you have a set of token here.
OK, so I had some issues.
I decided this is where I run with the python back to with the python, Django.
So these are some what we call them as he didn't characters.
So we tell you how you can clean this data and this method is both.
So basically we work with the method and the method in this.
And next in the next upcoming quarters, we're going to work with the database.
So thank you, guys.
Thank you so much.