Hello, friend, welcome back.
In a previous video, we successfully complete our logging portion and also here I have a discussion
about that, things with you.
How can update your all that you are dealt with, the steep response to and here, friend, here you
can see I have also defined on the condition that we saw in our money user want to access our user logging
pod.
So here if you want to access this pod like that is actually our logging, you are else should be just
as a logging, not this type of one of the URL I don't want to display for this user.
Right.
So you snowshoeing as a user logging because of all here.
You can see into the view area.
I just find the same things as a return renderer request and the logging app and the logging estimator.
So for the reasons this user actually now can actually access directly our spot.
So here I don't want to display it.
I want to display it should be displayed only that logging.
Right.
So now if you want to do that work only we have to we have to update our this part as same.
We did four hours here the better to simply copy it.
OK, so it should be rejected to our space.
It should be redirected to our same index.
That means the logging base.
So I just simply defended the logging that was in our app name as a logging app here.
I want to reject it or logging for the same condition.
But here with this, I think you already know about it.
How can prevent your inappropriate.
You are right.
So right now I don't want to use it, so I just simply make the things as if not better.
OK, so I just put that note so it'll be a reference to you.
So now I just simply defending it.
So now that means when this user and user want to access directly this part, that means this function,
then it should be rejected to our with this Seeta SCDP response to that.
It will be directed to our locking up and the logging.
Right.
So if you go to our you are and with the logging, I have already defined that part.
That will be as a logging.
So now let's check this out if you're not going to disable and now just refresh it.
And now if you want to access our D.C. water, that means here that you are lucky, you are not want
to access it because enter now you can see now you cannot actually access it directly if somebody takes
it to you, to the locking.
Perfect.
So that is actually the appropriate things.
I hope you can well understand about it.
So we successfully complete our logging part now onto our four logout.
So for the logo down to create one of the another function.
So if you want to working with this, log out after this.
OK, so after this picture I wanted to create another function.
So here I named that function as a dev and then user underscore sorry, underscore logout.
I just named one of the function name as a logout.
And also here we have to do we have to pass that request.
So to simply pass that request and also to have the another authentication plus function I have already
defined with this authenticate.
You can see that is actually the login and also they have the log out.
So I have already used this logging.
So with this logging, I'm actually checked this user.
Right.
So now I want to do want to use our this function.
That means the logout functions I just copied.
And now here that is the request.
Right.
So now with this log out with this log function, I want to pass that request.
So then that means this user will be log out and hold this user will be log down to down to redacted
to the index base.
So if you want to reject it, then I want to use our SCDP response again that we've done.
So, as I told you, we always use actually the request.
Then it's better as to the various points redact and then the reverse right into the reverse.
I want to do and the pass, which pays down to pass our law index, pays into the index page.
That is our app name and then our name as the index.
Right.
So now I just simply define our app name as a locking up and then I just simply define our index.
So that is a clever name.
So now when this system will lock out this user, when this user is already in, after that logged in,
then our this logging portion will be activated.
Right.
So for the reasons here we have to do we have to actually defining each of what the reasons I have already
added this function here.
You can say I've already added that import as a logging record.
That means with this we can actually define that the user is already locked in.
OK, so with this function, we can defining it.
So now I have to do I want to add these things.
So here in particular, that area that the at the rate and then we have to pass out this function that
is our locking.
That means with this it will be gone from this user is already logged in.
Then when the user will be locked in after that, our this function, this function will be activated.
OK, so for the reasons with this, you can actually defining each side as simply defined as the logging
required.
That means these user is locked in.
And now for our this lock out, for this log out, I have to do I have to create one of the wall for
this one.
So now what are you order?
We have to define other parts of it.
I just simply copied and here I just simply it so here I defined that part particularly as a log out.
OK, part will be as a log old and with the view I have created one of the function, I have created
another function as a user logout site to simply define our function name and I just name it as a log
out.
So now I want to do I want to add this.
I want to add this, you know, amenorrhea that means here.
So if you want to add this, then you have to do you have to go to your basic order.
That is the best e-mail and here and take another menu.
And I just name it as a log out.
OK, I just name it as a logout and also I have created by what else I define, find that you are a
name as a logo.
So now I want to do and you define that with this app name.
I have defined our name as a lockout.
Perfect.
So now let's check this out.
Now, if you click the save all, I just get to save all and now go here and refresh it.
So now go home, go to that.
Are looking and hear.
If you now click as a username as a Khasi, put the password on two, three, four or five Gleek as
a logging now can see now we are successfully logged in and now if you click is a log out.
So they have sent the message.
I did not receive a match at logout.
OK, so that is actually not defining.
So I have something wrong, you know, a thirty five line here, you can see I define as a class, so
yeah, it should be as a clone.
That means if you go to that view into the view area here, you can see I define as a slash.
It will be as a clone.
Right.
So we have already discussed about the things we do that the locking and the clone and then our name.
So here should be the key to our index base.
So here you have to define your index parts.
I guess somebody finding it.
Now, if you look at say, well, again now go back.
And also I just refresh it.
Just refresh it now, clear the locking and I guess locking the Karzi and then for the past four, three,
four, five, because the locking.
Yeah.
Now we are successfully locking and now if there's a lock out now here you can see it's now showing
some of the arrow.
That is a page not found and also selected to one of the another liberal as it accounts.
Right.
So here also here, we have to do we have to defining some of the things like when this user will be
log out and our D you are a lot should be visible here.
It should be visible our logging.
So that is the URL.
If you want to define then you have to do we have to go to your setting.
That means, you know, our side into the side, that door setting option and the setting option of
adding to the last area.
Like after this picture, I want to do the different the note for you.
This will be as a locking here.
We have to define this out, this part.
So when our locking you already, we have to define.
So I just simply defended the locking and the you are still OK for the locking.
You are still here.
We have to define the path.
So here I have to define the path will be as a logging.
Right.
So here I have already defined all the other parts that will be our you are so we over this area for
the reasons here I have defined our logging.
You are well into the logging.
You are l I defined the path it will be as a logging perfect.
So now if you click as I save all.
OK, now I just clear the save all again jacket, and now I just go back and refresh it again.
There is a home base that is a registered base, that is a logging base.
That is a long, old place to know if you click as a logging and down here at the front of the Karzai
at the gate and then our password clickers are logging.
Now you are successfully logging.
And also if you go to our log out now, you can see now they have no error.
OK, you can see now if you click on here now, it's automatically added our D.C. Warrell.
That is the URL I have defined in our setting of scenario into the setting.
I have defined this.
You are light.
So now you can see so perfectly related to our DC also.
That is the URL.
I have already created it and after that automatically added our dislikable function.
That means that I have also another function I have use as a default on the Django function.
That is a logout function.
I hope friend is very much clear to you because of all I have already created one of the while as a
logging.
If you go to that logging, you can see I have already created on the wall as a logging now concede
they have no errors, difficult to log out perfectly.
It's not redacted to our pace, so friendly successfully complete our logging portion.
We successfully complete our registration portion and also we successfully complete our logged position.
So now I want to do I want to actually update our display nabarlek when this user will be logged in.
OK, that means when this is over will be logged in the NRA, the start and the locking, these two
of these button not should be visible.
And when this user will be logged out, then our disaster and the logging will be visible.
So how can we find this validation?
In our next video, I will show you that things with the live example.
So thanks for watching and I will see you in the next video.