Hello, friend, welcome back.
You know, previous video I have created, one of the function as father sign up and also I did find
that our window washer sign up will be PAFA successfully and added then it's should be to our this response
redirect to the logging pasto here and try to the defend that logging pays.
But I didn't create any function for the logging.
Right.
So no one to turn to create one of the functions for the logging.
So I just simply defended the day.
And here we have to define our function name.
I just name it as a logging like logging user and then we have to pass that request will be just like
the same before.
I think if you already remember it, if you already packed it, then you can know about it.
So into the form.
See the formula right now down to access our dis authentication form.
Right.
That is our building class.
So now I have to do and access it.
First of all, it will be right of the object and then our same condition.
That is if our request and then the method.
So there is a method when this will be curlicue all our post because in our locking also we have to
load on the form.
Right.
So it will be as opposed then our form.
So our form with this sort of indicate that our authenticate form here we have to do we have to pass
our request data.
So here we have to pass the request and then our post our poll data.
But here also we have to do we have to authenticate it.
Right.
So before we authenticate, I want to undertake our distinguished data with one of the variables.
So here I defined that variable as a data sorry data center, the data variable.
I want to save this data.
OK.
And after that?
After that, we have to do we have to define our condition as if our this form is is valid, is valid
or not.
Here we have to check it.
If you have to check it out.
We have already found our default, our all that field as a user name.
That means our user name when this will be our phone clear data with our form then being data gleaned
underscored data, OK, and then the gate will be as our user name and also for the password we have
to define the same things.
So sorry.
So also for the password will be our form and then the clean data.
So there is a clean data and then get our full name.
So that is our password and after that we have to check it.
After that we have to check that out with our authenticate.
That means this is our username and password is authenticated or not.
So this user, I define our class.
Another one of the authentic GIFs, I have already loaded it.
That means I have already imported.
Those are all indicate.
And with this authenticate, I have to define our username username.
It will be equal to our user name and also same as password will be equal.
Our password.
Right.
So here, which will be authenticated.
And after that, if not so here, I defined as the eve user that MRW if not, is not authenticate.
So if this user is non is not non ok, so it is not known, then it should be defined that our logging's
without locking glass here.
I don't want to define that request.
You guessed it user.
I say should we pass to particular that area and then it shall be sure of the return and the return
to the past that is retrieved EDP as sponsor with the sponsors to be sure on steak's as a locked in
OK, locked in so they step up.
Messages should be displayed and also here and don't return return our locking place because here we
have two also displayed.
So here I defend the return render and with this sender we have to pass that request.
And then you know, our app logging into the app logging, you have to pass our logging base.
So I name it as a logging protest, email, logging, that e-mail, print.
And also we have to do have to pass our form.
So without context, context, right.
To this context here, we have to pass our form.
OK, I have to pass that farm, I the assembly, pass it so I don't have to do we have to design our
tour of this space as a sign up?
And the logging is terrible.
So I just to save all that is our business html souls, we have to add that business.
We don't need this model.
I just simply remove it.
We don't need also this form.
So now in our template that is our sign up to this Temel.
So here what exactly you have to do.
We have to first of all extend our this business.
Jamul Right.
So I think you already know about it.
So now we have to define as the extend.
OK, extend and it'll be extends our base.
OK, base Dartez Tmall.
So here I just simply defined this the amount and then also we have to load our case preformed because
here I want to use it so that it all quispe that we the load and then Crispi underscore again.
So that is forms and the tags.
So the result Quispe from tax and then we have to add our title block.
So I just simply defined as a block block will be our title title underscore sorry title underscore
block ok title block.
And then also we have to do we have to end it.
So here after this I just simply and block and here shall be sure some of the text and create new account.
Create new account so we step up on the title will be visible and then our body block.
So here and we do find our body block.
That means the block.
So our block will be as a body underscore block.
And also we have to do we have to finish it.
So here I just simply give and block perfect.
And now I want to take what is to the back, and it should be as a create new account because of this
type of the extra tag.
And here I want to define our form.
So no friend, I think it should be very much clear to you because we did the same things a lot of the
time.
So that is from here we have to define our method and method will be as a post method under the post
metro area.
First of all, I want to added our form.
So in particular that position.
OK, here from our view, I have already passed in our sign up as a form.
So no, I want to define our form and also here I define that Quispe.
So that will be our piece before.
OK, I just simply added that Quispe and then also we have to define our A token.
So I just really wanted to see SRF underscore tokin.
OK, and then our bottom.
Sorry, you double team or Barton will be at the summit and here we don't need any name here.
I want to do under the front of the class for this bottom and the class class class will be as a battle
between beauty and success and then between s.m and our bartone will be as a create account, create
account.
OK, so they step up, one of the button will be visible.
And after that, I also want to add one of the links for our locking so better at the front of the bracket
and here I the front of the PAETEC and like you to be sure, they already have an account.
OK, I already have an account.
There is a question mark.
And here on the final note here, riffling it shall be as a log in here.
OK, here.
So we display this type of on the link.
So now I want to do also want to add another wall.
I want that wall for about login.
So, you know, are you still here?
I want to take another one is to be as a login.
OK, locking in our view, I have already created one of the function that we are logging user.
So now I just simply defined that our function will be as a logging user and I just name it as a logging.
So now if you want to access it, you can access it with our app name.
So here I don't want to defining it.
So that is in our water rights into the are our app name app logging and the app logging.
I have defined it.
So we are logging that we see with our app, logging with our logging.
Right.
So I just simply defined that logging.
So here I have already created our part.
That is a logging parts and I want to do and define that things in our sign up go to our view into the
sign up area when you sign up will be successfully done, then it will be done.
Redirect to our response, inadequate our response.
So here to do and pass it to our app, logging and the logging base.
OK, so when successfully you sign up then it'll be up to you, to the logging base.
And also here we need our log out, but I don't want to create another function.
So it will be as a Dave and I want to create as a log out the user log out under this call user type
thing.
You already know about it what exactly you have to do.
That is a request.
And also, if you want to access this log out user, that means a log out, then you have to make that
user as required.
So.
Right.
So here I have already added.
You can see I already added that logging request from our decorator's.
So for now, after this here, I just simply defined as a logging record.
And then there is our function as a logout user.
So for the log out, it's pretty much simple.
You have to define all of the building classed as a log out.
So I just simply use that log out and then our request.
I just simply pass it and then it will be returned.
We've done with our EDP response to response here and to show some of the message, I should be sure,
as a locked out.
OK, so logged out, sorry, locked out.
So this step up on the logged out.
So for the logged out, I also want to do want to create another.
You all go to our Warrell here and we to define another one.
It should be as a locked out.
OK, logged out in your view.
I have created out this glass so that they are logged out user.
So I just simply defended the logged out there and I just name it as a log out.
So here we successfully created our sign apart.
So now I also want to design our log time.
So that is a logging.
So be just like that same.
So I just personally copy everything from our sign up and I just simply posted in our logging.
So this will be extended our best e-mail.
Also, we need that Quispe form tags and that is our title.
So here it will be displayed as a logged in and then our body blog and then our create.
So here I want to do all the fun of the logging user, logging user and then our form.
So also if you go to our view so far, our logging user, I suppose as a form.
Right.
So now we can use it so that we are formed.
Crispi the resources button that you use took and that is the type will be button that will be submitted.
Everything is great.
So now here I define not to create account which will be as a in OK, so I just simply defined as a
log in and here.
I just want to change the debate, so here I defended it, does OK and does not so does not.
So does not or does not have an account, then it should be Dakotah, which, you know, blogging itself
will dictate to our sign up so that it will sign up name.
I have defined its ability to sign up and here it shall be sure to create account.
OK, so I'll be sure to create account.
Perfect.
So now let's check this out.
Now if you click the save all the save all.
So there those survivors are already starting well, and now if you want to access our site, so here
will be our this you are real.
And then also they just sign up that we'll see what else here.
That is our sign up.
I want to access if you want to access that site now, first of all, you have to do have to add our
accounts.
Let me see in our here into the settings already into the wall here to help define that account.
Right after that account, we have to define that sign up.
So I just simply define that count, OK, account.
And then I want to do and define our sign up as I enter.
Not going to snow perfectly display our sign up base and also from Texas are locking, so there is a
lock in click enter.
Yeah, perfect.
You can see the email address and the if you are also find that link.
So that is are logging here.
There is a logging here, create account perfectly clear to the ground software and we successfully
complete our form.
That is our sign up and the logging form.
So now we have to do we have to logging, we have to create the sign up base for the user.
So step by step will go more deep.
And I hope you will like it very much so.
Thanks for watching and I will see you in the next video.