Hello and welcome back.
In a previous video, we successfully complete our sign portions right now.
From here, we can sign up that the user.
Right.
And also you have created one of the sign up users that is our guest.
So right now, do want to create one of the logging bays so you can create that logging base.
First of all, we have to do we have to create the template.
So right now, I just got to save all.
And now, you know, our app logging into the app logging folder.
I want to create all the new file and just name it as a logging, not as HTML.
And I just simply save it.
So here first of all, his data is important.
That means here we have to do we have to load it right.
We have to load our extend by e-mail.
And then the title I just simply copied and here I posted that message will be as they extend our basis
to email.
And also in our case, we found that because of all it's also be needed.
And then the blog title and I just name it as a logging logging base, logging base, it will be our
title that is our main base title.
And also here we have to do we have to load our body block.
Right.
So that will be our body blog.
So just simply load that body blog.
And here we have to do we have to and this body block.
So here I just simply and our blog.
So that will be our end blog.
And here, if you want to put on the contact or a Twitter tag as a logging your your account, so they
step up on the text which will be displayed.
So here also for the logging, I want to do want to add one of the forms for doing this.
We have to do we have to work in our view.
Right.
First of all, into the app logging.
And that is our view, simply the app logging Veria.
If you go to that documentation here, we have already used that our U.S. from right to know that the
for the logging, they have another form, so they have another form as the authentication form.
So with this authentication form we can actually logged in that user.
OK, so that is all the follow on.
That is one of the authentication forms right now.
I didn't actually use it in this class.
I want to use it.
So if you want to use it, first of all, in our view area here after that here, I don't want to load
it on the Lord.
Sorry, I just simply copy it.
And after that here, I just simply passed it.
So that will be our authentication from that is our default one that is in our Jango country, old and
familiar.
I want to import before I have input for our creation that in the U.S. from so right now for the logging.
I added another one as the authentication form.
And also here I want to do want to load our another logging and authenticate and the log out better
and still be needed in fundamental.
I have already discussed about the things we do.
So that is you our from Django, from the Django and then the country.
So that is our country from the country and then the north and from here.
I understand the import as a logging.
There is a logging method that is the default one of the logging method default.
They have done other other authenticate.
So it is authenticated to actually check that the user is authenticated or not.
Right.
And also want to load that log out.
OK, I just simply load it because also we will need our log.
OK, so right now with this logging we have to work.
So first of all, I don't want to create one of the function.
So here, better, better here.
I name it as a wave and our function name my name as a logging base.
Logging underscore Paice.
Also here we have to pass the same as a request that basically parameter.
And after that here we have to do we have to first of all, check it.
What data that is our form.
What form.
We will pass it from here.
So now what we have to do, we have to actually add it.
Right.
So for that reason, in our view here, I want to add our form.
I take one of the variable and the variable area and do the load our form.
So I have already loaded that as a authenticate form.
That means this authenticate form will provide to of these as the user name and the password field.
So right now, first of all, I just simply loaded and I hope is very much clear to you and then I want
to do I want to put on of the if condition the same logic will be happen as a request.
I want to check with the request method.
Right.
Method is the Wall Street or not.
That means Borst or the gate is first of all to check it and will be forced.
Then I want to do I want to actually get all the tardigrades, the data.
So that is the same as a form and the form variable here.
I want to do our Desart in.
And from all that data, what are the data will pass that things from a logging base, so that is our
authentication from data here.
I want to pass that our requested that request as a post request as pulls data.
So, first of all, I want to actually check it before we have to.
Also, we have to actually authenticated.
So for the reasons here, I want to take this data.
We don't have the variable.
I just take that as a data and into this data variable here I pass.
I just simply save our this and request it pulls data, OK?
And then I want to do want to pull that validation.
That means I had one of the if condition, if our form, if our form is valid, is underscored valid.
So when it should be valid then I want to do I want to put our view of this field and as I told you
before, this would indicate actually provided some of the field.
So if you go to our authentication, that means that user authentication, they have some of the default
field as a username feel and the password feels right.
So that will be our default field.
So here I want to do an actual checking because of all.
If you go to admin and do the admin here, as I told you, they have the files on the user table is
provided some of the default feel of the username feel and the password feels right now what we have
to do, we have to check it right.
Do the logging panel.
We have to check it.
That is our appropriate user, name it or not.
And also appropriate password is are not.
So for the reasons here, I don't actually use both of this.
So here.
So if this form is valid.
So here I want to do I want to put that our take one of the variable as a user name since the user name
area, that will be our form.
OK, that means our form.
And they have also one of the function as a clean data, as a clean cleaned, understood data.
So here I just simply added as a clean data and get and get our these default user name.
That will be our default field.
That means our database to be our admin database user table feel as it user name.
OK, so I just simply take that things are this variable that we see in our user name variable.
And also we have to do the same things, we have to do the same things for our password.
So I just take one of the variable as a password.
OK, let's take another variable as a password and with the form clean that I want to get our database.
That means that we had been that was user to build this password fieldtrip.
So here I name it as a password.
So that is all the default field as a password.
So now I want to do I want to check it right.
So fundamental.
I have already discussed of all the things we do, I just take one of the variable of the user and here
I want to check it.
That means this user put that appropriate user name on this user, put the appropriate password is not
so you can check it, you can check it with the authenticate.
So here I have already learned that our authenticate method.
So with this authenticate, I want to check if so this authenticate, I want to put our field.
It shall be as a user name.
It should be matched with our appropriate user name or not.
That was requested user name or not.
And also same as password.
Password is the same.
Password is are not right.
And if I want to do put that condition, if that our this user let me authenticate user check it and
this authenticate user, I take the things with this variable.
So if this user is not NOM that means if they have any user then it should be logging.
OK, that means if this hour user name match and the password match then I want to do and to actually
make this user as a locking.
So for the reasons here, I want to do want to use our another one.
That is another matter of the locking.
So with this locking method, with this locking method in the past hour, this request so request,
I want to pass that request that is our user that this user request, I just simply pass it.
Right.
I hope is very much clear to you.
And then I want to do and to return.
That means return with our EDP.
So here also we have to do we have to load that EDP.
So in fundamental, I have already discussed about that things with different.
They have one of the method as is to be redact.
Right.
So here that is you are from and that Django from the Django and then the shotgun's.
Right.
So probably the Jango shot and here from here on to Lewontin, put our SCDP, SCDP response redirect.
So that will be as a response redirect.
And also we need that reverse.
So the reverse is in order from Django, from Django.
And then you are also from here and want to import our reverse.
Right.
So here I just simply load our reverse.
So not with this the response, we can actually pass the data so that these are returned and the EDP
direct.
And here I want to do on the policy do the reverse and the reverse area.
I want to parse that.
That will be redirect to our home page.
That means home base.
If we go to our main project, that is you are still.
So that is our home base, and I just named that as an index rights, and I wanted to do and actually
use the powers that use that to that or index that measure.
I just simply posit that between our this user, when put that appropriate username and password, then
it should be redacted to our this index based OK after deadlocking, used to be addicted to our home
base and also here on the dot returned it.
So rather then it should be returned because here we also have to pass the audition forms that are in
our to our logging base.
And here it was different.
I did an ad that actually that will be on the column, OK, that will belong to the column and into
the column anyways.
After that if condition here we have to do we have to fully loaded.
So here we have to actually pass it on particular that position.
OK, so you can see that of the line.
So here we have to make that our this if condition on here.
So here I actually miss it rather than you will get that some of the arrow so that if condition and
then here that is our pass and the result, even if condition again perfect.
And then the logging and then the return is TDP direct with the reverse in our index.
Perfect.
OK, so here you make that show.
You added I miss it on here and then I want to do I want to pass it, you know, render that piece in
our home base area that is in our Terzieff condition without this post.
So first of all, here overloaded.
So it will be redone, redone and then with the render.
So with the render as it will do and actually pass through of this parameter.
One is the request, one is the request, and that is the file location.
So here I have to do have to load that file.
So in our template, in our app logging, I have created our locking that HTML.
So that will be our app.
Underscore logging through the front of the app, logging on to do under load our logging dot as Tamalpais.
Right.
And also here I want to do in the past that our contest data, that means all the different data.
So if you want to pass it, you have to do have to pass it with the context.
I take one of the variables as a context, OK, with the context here, that is our data.
So that means that is a condition.
And additionally, I want to pass our key.
So here Dilaudid, our authentication form in the application form, will get out of this field.
What is the username and password filled out?
So I just take the things with these forms right now and don't pass it through the dictionary.
I just simply pass.
No one can actually access our distinction that, you know, logging daughters, Tamalpais, Lightford.
So now we have to work on logging.
That means if you go to our logging here after that, we have to do have to load, first of all, on
the form, it will be just like the same.
So here we don't need any class and also we don't need any action.
Only our method will be needed.
And in particular, that area we have to do we have to load our form.
So into the view from the View, I pass our context that I know this area as a form that without this
key.
So here I don't want to do.
And the load our this form and also I load our Quispe.
So for the reasons here, I wanted to use our disk space.
If you want to use that Quispe form then with the pipe and then that is OK, speak.
And also here we have to load, make sure you load that our CSF token without CSF token will be not
works.
I name it as a CSF.
Right.
That will be our C a set of token and after that I take one of the button for the submit.
So it should be as a submit source will be the submit button here.
We don't need any name I put on the class.
OK, I put on the class for the bottom so class will be as a return with the end primary.
What can be done between primary and between a small size.
As s like I said, this step up.
One of the button I want to take and I name it as a logging.
It should be as a locking perfect.
I hope friend is very much clear to the form media.
I load our default on the form, so that is our default form as to indicate from right now communication
form.
So right now we have to do have to create one of the wall for access our this logging.
So that is in our app logging code that you are still here.
I don't want to create any one with the comma.
So here I don't want to put that name that is our part will be as a sign in, I name it as a signing.
And also I want to do the that power name will be as a signing.
And in our view area, I have already created one of the function, our function name as a locking place.
So no, I just simply added our this login.
That means our function name will be as a logging base.
Perfect.
So now we have created our DNA and we can actually update our sign up piece into the sign up phase here,
I load our logging here so better able to prove that you are right now.
So that will be, as you are a little animal, that you are a lady, that is.
I have already cleared one of the name.
That means our here.
I want to do a load of the name that is the app name app name as the app and the name.
So with this app name, we can actually use it very easily.
So I just named that as the same as the app.
Underscore logging, OK, app logging.
So that will be our app name.
So with this app name now you can actually use it.
We can use our Dysport name.
So I just simply copied our sign up here.
It should be an app logging and with this app logging, I want to access our part.
You are telling our name.
I just simply added as a signing in social be as a signing I just copied and now sign up here.
I just simply passed it.
So that will be our referral and also for the logging I wanted to do the is all the logging here.
Here.
I also want to update now click because a Savol so now to turn to check it.
First of all, I want to check here.
You can see they have some of the arrows visible.
So that is in our location, python in it as a python initialize and that is our form.
Django, you also import reverse so you can see the spelling mistake.
There is a reverse to be updated like that is our view into the view area.
I have loaded the reverse.
So should we actually reverse Rivière s e ok, I actually missing that e so will be as a reverse and
also here I pass it as it should be, the reverse and then our index now click the save all.
Now if you check it.
Yes, you can see they have no.
So if you get any will be actually displayed on particular that area.
So I just saw the mistake for the spelling and you can see it's not perfectly running or sidebar.
So now let's check this out.
If you go to our site and now refresh it better.
I want to go to our sign up base.
So snowshoeing as a reverse sign up, not found a know sign up here.
You can see I understand it because of all here friend in our Etoile into the euro area.
I have added one of the app name.
Right.
So if you want to already use that app name before I didn't use it for the reasons or sign up.
Name is perfectly working.
If you want to use it then you have to do we have to use it with our this app name.
Like if you go to our business Gmail into the business email, you can see it directly use that sign
up.
So right now here I added another app name so you can actually you have to, we have to use it with
this so better I want to do to add it in our pages html.
So here I just simply added our app logging and then that is our sign up right now.
If you click on and save all note, if you refresh it again.
Yeah, you can see the perfectly loaded.
So I hope people will understand about it why actually this arrow is generated.
So before I didn't add any app names.
So for the reasons he saw here, if you don't use it then you can access it directly.
OK, so for the in our business to email before I have use directly our sign up base, but when I use
that as the app name for a specific this you are a pattern.
You also want to access it.
Our this app name, you can use it for the reasons here have declared as an app name as a logging app.
So right now you can see for the reasons here you have to have to update it.
That is in our app logging into the app logging area.
I have played around the part of the sign up so far.
The here this is now perfectly invisible.
So now if you go to our refresh again and now if you want to access our logging here, I have already
put that link as a logging.
Yes, you can defend it successfully loaded our form.
That is our username and password from.
Right.
So now I want to check it like here.
I have already declared that part in our view into the video I loaded.
That means when this user will be successfully logged in with our return as TDP response to that, I
pass that into the reverse in our index page.
Right.
That means that is in our index if you go to our menu URL into The View.
So that is all in this matter into the index method.
I have loaded our app blog block list.
Right.
So that is our blog.
That is our blog.
And there is a long list of the symbol that means used to be elected to a particular space.
So now let's check this out and also find here, you don't need to add anything because the fall automatically
they have all the validation.
Like you can see snowfall also flowing as a presenter, correct.
Username and password.
So here all the validation is by default, you get every validation with using our diskless.
So here I have already loaded our class as a authentication form.
Right.
So now consist of perfectly loaded.
So no one to turn to check it.
That means I have created one the user as the test that the user name and password you didn't want the
three, four, five.
No click is a logging.
Yes, you can see friend right now, he successfully logged in, so that means our this logging portion,
that is this validation, everything is now perfectly work, right?
So when this user is perfectly logging here, you can see I posted with our SCDP response redirect to
our index page so you can see the perfectly rejected during this space so far and we successfully complete
our signings.
Right now.
You can register a new account with our register.
And also here, you know, can logging.
Right, that means you can you logging your user.
So here I have used all the default forms for the logging.
I also loaded our form.
And that is our of and I just simply pass it and everything is perfectly working.
So right now we are already locked in.
So your next video on to discuss about how you can log out this user.
So it's also very much easy.
I have already loaded that in our view.
That means in the video, I have already loaded our log out.
Right.
So with this logout method, we will complete our log out portion so we can do that work.
In our next video, I will show you that things with the live example.
So thanks for watching and I will see you the next video.