Hello, friend, welcome back.
In a previous video, we successfully lowered our sign up piece, so that was our sign of form and also
that is a logging farm, right?
So no one to do and to check it like here I want to create one of the user.
So here, if you create like I just name it as a Ardian, Adelaide, G.M. dot com.
And I also find the password as you do me one, two, three, four, five.
And also you do me one, two, three, four, five.
So No one to do and to create one of the user and for creating that user.
I have already defined this part.
Like if you go to our app application, that is our app logging application into The View and The View,
I have already created one of the function as a sign of function.
And when it will be done, then it should be directed to our EDP response in our app logging.
That is a logging rights.
I have already created that world.
So here I have already killed around the world for the logging and also for the log out.
So now I want to do I want to check it.
So here should be should be redirected to our logging base if everything OK.
Right.
So now let's check this out here.
I put our email address, a password and the password.
Click the create account.
So now we're showing some of the ad or so they're showing us a not now and cannot failed app logging
user is active.
OK, so here is showing the step up of the arrow because of all in our model.
If you go to our app logging and there is our model and the model area, maybe I defined something wrong.
So here that is our user.
Just text Laiza active and you can see here I define that as active, but here we have to do have to
also make the things default as a true.
So better after this.
After this.
I just make that as a default.
OK, just as a default and default, I make it as a true.
So I just simply define that as a true.
OK, so make sure you add it.
So I just make that our this user will be as a true.
It means actually if you go our locking panel into the locking, if you go to that user like right now
I have already one of the users, the admin and here this one, OK, that this button will be as active.
So here you just simply default make things as right now as the default should be as a true when it
should be the truth.
That means you will be as active.
So here, make sure you add it.
So now I just simply defined as a default, as a true and no click as a save all OK.
I just going to save all.
Yeah.
Everything is running well so no one would want to check it again.
Like go back.
And I just refreshed it again and I just put that Azarian at the rate Gmail dot com and you do me one,
two, three, four, five, and also you do me one, two, three, four, five.
OK, so here I define our email address password and the password as a create account.
Yes.
Now friend now successfully created it and will still be created.
As I told you here, I have already defined this, but it will be redirected to our displays.
That means our app logging and there is a logging base.
Right.
So now if you want to also check it like here right now, why go app and go to that user?
You can see there is another user is added as a Arianna, the original dot com.
So now I want to do and logging it.
So here I refresh it again.
And now I want to do a logging with our this email address that is Irion Atteridgeville dot com and
also defend the password as you do the three, four, five.
And now if you click the login.
Yes, you can see snowshoeing as a log cabin, so that is the response masses I have defined, like
if you now go here, there is all logging pollution when it will be as a logging the it will be returned
our EDP response as a logged in.
Right.
So now I can see stone throwing, our dislocating message.
And also I have already defined our log out.
So for the log out to be as a log out there.
So we show our written response as a locked out.
Right.
So not only also for the log out I have created and there is also this wall will be as a log out, so
I want to access it.
And now here, if you enter now we see each dot showing as a logged out.
So that is the message I have defined.
So here I have defined that message when it should be longer than it should be done.
Our response, that means tested impressment as a log out.
So now you see something as a log out to No one to do.
I want to work for our profile.
So for the profile, I have already defined some of the feel.
Right.
So if you go to our model into the model area, I have already defined some of the class as a profile.
And this profile here, I have defined some of the class.
So if you want to access it, like if you go to our admin, into the admin, that is our user.
And also right now we have actual logging because of all I logged in in that user.
So I just defend the admin G.M. dot com and let you do me one, two, three, four, five, not because
of logging to.
Now, if you go to that, our profile and the profile here, you can see that it is profile and the
area and profiles.
I have created both of these sites.
So if you go here so you can see that actually the name I didn't define any name for our audience at
the original dot com.
So here there is also one of the form that is our user name, the full name address, CDG Gore Country
and the phone.
So now to go on to work for our this profile page.
OK, so here right now that is our user.
So I have already created the user Azarian.
So as I told you before here, I have set up this step up on the condition when any user will be created
automatically.
This user, one of the profile will be created.
Right.
So for the reasons here, you can see automatically created another profile.
As for this user, so that is our user, Azarian, and the original dot com orchestrion.
So I hope people will understand about it.
So into the model area.
So here I have already defined that things with our DDC words.
So when any user will be created automatically, this user, one of the profile will be created.
So for the reasons you can see, it's not perfectly created on here.
So no one to do and to create one of the form.
I want to create the form for our D profile.
Right.
So for that reason, as I have already created the space in our app logging here, you can see I have
already created on the pace of the change profile.
So now I want to work for our D profile space.
Right now we don't need this, OK?
Everything is now perfectly working setting.
We don't need this.
The design app also we don't need this.
So into the view area.
Into the area.
First of all, I want to do want to create the function on the creator of the function for our profile.
This will be just like the same RPV as all that condition we have to apply actually.
So here I just name it as a dev and then I name it as a user profile.
OK, this type of one of the functions I want to create also here, we have to pass that request and
then what exactly have to do.
I just take one of the variable as a profile.
So do the profile area.
I want to define our profile object, so make sure you add the profile.
You can see I have already added our modules.
There is no profile model.
So from here I want to get all the raw object data.
Right.
So that means here we have to do so.
Do the profile area I want to define as a profile.
OK, so into the profile I want to do and get all the other objects data.
So I just simply as objects and then get and get our all that object related user because data.
Right.
So here I have to define that user.
You go to our request to the user.
That means right now which user is logging.
So these user requests that the user that I want to get, OK, so I just get this data and I take the
things with this user that means right now, if you're logging with the user and also after that logging,
you can actually access your profile.
That means here you have to define your this user that requested the user, which user is already logged
in.
Right.
So here I have already finding it and I just take this data.
We know what this variable that is our profile.
So after that, I want to turn to our for our form.
That means here also we have to load our form.
Right.
So I just simply defined the form and the form area.
So here with our profile, that means profile form.
So I have already loaded our profile from maybe.
So here you can see the level profile from I have already loaded, so with this profile from I want
to do so with this profile from here, we have to define all that, our instant profile data.
That means which user is already logged into this user already have some of the data.
Right.
So here we have to defining it.
So here we have to defining it with the instant OK, in a sense.
So in this instance, in a sense, will be our this user, which user is already logged in?
Right.
So this logging user, all that profile that I get, that is with this variable symbol, I just simply
pass it on here, I hope is very much clear to your friend.
And now after that, what exactly you have to do?
We have to do this on the condition for check it out that polls that are not right.
So I just simply that request and then our method method and the method is to be checked as opposed.
Right.
So that is paused and then our form.
So then our form here we have with our D profile.
That means so with without this profile from and here also we have to parse that our request, post
the request and then post.
And also here we have to pass our already which user is already logging this user already.
They have all the data.
So this data I take the things with our instant profile.
Right.
So here we have to pass it.
And after that I wanted to check it.
So here if our form if our form is valid.
So it is valid with this.
I want to check it.
OK.
So everything OK is will we save this form data.
So I just simplified the form and then save this data, save and after that we have to pass it.
So here our form or form data with our that will still be just like the same here.
We have to also again call it.
I just simply defined that things on here so it'll be just like the same.
So here there is a form that that is a profile A that is already this data will be safe.
This data will be again saving our instant area that we've seen a stand without profile area.
OK, and then also we have to do we have to load on the pace.
So here there is a written and written deringer.
So redundant with this request here we have to load onto the pace.
So here I defend the page in our app logging into the app logging.
I have created one of the page.
So that is our James profiler's Jammal.
So to simplify this change get changed under its core profile as HTML.
So that is actually our pace.
OK, and also here we have to do we have to pass it.
So we have to pass our context.
So context that we have to pass, that is our form.
So form will be as a form.
Right.
So here I just simply pass it.
So now I want to do on the load our this form.
That means our profile form.
You know, Jane's profile orders.
Tamalpais So now go to our app Logging and the Change Profile.
So here we have to do we have to update it so it'll be just like our sign up.
I just simply copy it, OK, because everything will be just like that.
Same and in our profile here it is simply pasted.
So this will be extended our business, Gmail, and also here we need our kids to form with the tags.
And there is a blog title.
So blog title will be as a profile, OK, blockheaded will be as a profile and then our body blog and
here we don't need any things.
So here you can define as a profile of a profile piece.
So this type of restitute actually visible and after that that is our form and methode as a post method.
And also here I define that our form.
Right.
And also here I define as a Crispi.
There is a a set of cocaine and Berten will be as submitted and here define the class as a and better
and better.
I want to use as a warning.
OK, defined as orning and then between s.m and then our bottom names or Bartolomé will be as safe.
OK, safe.
So this type of one of the Bartonella visible and after that there is a form so we will need our Locky.
So I just simply won't be and that is our beer.
OK, I just added another beer.
Perfect.
So that's all you have to do.
Now let's check this out if you know the same ball.
And here also we have to do we have to create that.
You are unlikely to create any Warrell for this profile.
So in our view into The View area, I just simply copy it.
And here I define that name as a profile.
OK, so profile and also into the view area.
I have created another the function or function name as a user profile.
So I just simply define our user profile and then I name this part as a profile.
So no one did want to access our this profile.
So now, officially, as I say, Voll, so if you want to access this profile, first of all, you have
to log in, right?
So here they have defined that part.
First of all, you have to logged in.
So now I am already logged out from to this position.
So now I want to access all login to enter and refresh it again.
And I want to put our email address as the Arion.
So that would be Azarian Aboriginal dot com.
And then.
And then you do me one, two, three, four, five.
No click as a login.
So right now, I'm logging, so now on to the Texas hour, this you.
So there is oil as a profile.
So after these ideas simplify the profile is the answer.
Yes.
You can see it's not perfectly loaded.
Our total from that is our user name.
That is the full name, address city, the gold country and the phone and then our save button.
So if you want to update it, you can upload it from this area.
So here I name it as a Ardian.
OK, and Khasi are Ardian Con so I just came into the Ardiente con and here I find that full name as
a crazy area and also that is on Adria's.
So I just simply for now is the address of the USA.
OK, and then I define the city as a USA airports on the description that zip code and the country are
defined as the USA and also hear defense on the phone number.
OK, so the simple defense of the demo phone number.
So now let's check this out.
If you click the safe.
Yes, you can see every data is now perfectly updated.
So there is a user name is selected, the full name is selected.
Your address is selected.
City Code Country.
Every data I select recipient update anything.
You can also update it.
So here I define as like the Ardian area and K so for that I have already created on the user name Azarian.
So for the reasons here I define Azarian K ok I want to updated click the save.
Yeah it consists of perfectly updated.
So now here if you want to define this type of on the message option like here when this will be as
Ubaid that means save, then it should be sure some of the notification as a profile is updated.
And also when you locked in then after that logging is to be sure, send the message after the when
you complete your sign up, then if you want to display all the message, how can this play very easy
way with using the building of the class in Django?
In your next video, I will show you that things with a live example.
So thanks for watching and I'll see you in the next video.