Hello, friend.
Welcome back.
In a previous video, we successfully complete our logging portions, right?
So now that is our sign up page.
That is a logging page.
And also you successfully complete the log out.
So in this video, I want to do want to discuss about like if you already access the here we load all
the form.
We load on that with our user creation from right into the U.S. form is actually providing three of
this field.
One is that username and password and the password feel right there is a password too.
So by default we get three of this field.
But here, if you want to add another external feel like for this user registration, I want to do want
to add another feel for the e-mail.
So how can I add that another feel that means another custom feel in our design base.
OK, so how can do that work in this video.
I will show you that things with a live example.
So it's pretty much easy things like here right now that is you.
What else?
There is a business right now just simply remove it.
OK, so that is in our app logging and into the app logging area.
If you want to create some of the custom form, then you have to do we have to create on the base.
So just click on a new file and just name it as a forms forms dot fight.
So that is are forms that fight and the forms that fire area.
First of all, you have to do we have to load some of the glass like here, first of all, from Django
form to the Django, I have to do I have to import our Django forms.
So I just simply load our Django forms.
And then also I want to do to load our this user that this is our creation form so better.
I think you already remember it.
I have already loaded before.
So that is, you know, Django and then the country.
Right.
Country and the old and then the forms and from here you have to import our this usurpation from.
So as I told you with this usurpation form already we get some of the specific feel that is our username
password and the password too.
And also I want to do I want to import our user class.
So here, if you go to again, so far from the user class, they have the same on the field.
So you're also providing that user class also provided that email rights.
So I to do and actually access about this email in our this form area.
So that is all user.
So right now, first of all, we have to do that.
Also lauded.
That means we have to import it.
That means from and that is in know Django and then the Cantrip.
So that is all Django country and then art and then the models.
So from the models and we import our user class.
Right.
So I have already discussed about that things with the friend.
So that is our user class is actually providing five of these field.
So that is our five of these field.
If you go to our admin panel into the admin panel also, it's not showing us the username, password,
first name, last name, email.
That means that is our user on the database table by default on the Django table.
And it does table that that have the five different fields.
Right.
So no.
And we don't actually access our this email field and this email filename by default as email.
So no one to do add another additional feel in our Disfarmer area.
So for the reasons I simply import it.
So no to do create the creation of the class, same name in that class as a sign of OK, name it as
a sign of form.
So this type of the form and here also we have to do we have to load first of all, all that our user
from the user creation from I just simply load it, OK, and then I want to do I want to add our additional
fields.
So I want to add and the email additional fields.
I just take one of the variable as email and if the email area that will be in our forms.
So from the forms that means that is our Django forms into the Django form.
Syria with this I want to do want to add that type or this type will be as the email field type.
Right.
That will be as email field.
So that another one of the type as email fields I just added it will be as email field type and also
make that as a liquid.
So record record will be added.
True.
So make it as a true.
That means this field will be as a.
OK, and also I want to do want to create another class that means inside this class I want to create
another class which will be as a matter.
So I name it as a class and it will be as a middle class.
OK, into the middle class area.
I want to do want to add our model.
That means, first of all, that is that is the user I want to use.
Right.
So that they will use a class on the use of the.
Here, I just name it the model store model and the model area, I load over this user class, that
means this user class goes from to this user class.
I want to get our this email right.
So here I just simply added our user and then I have to do I have to add that our fields.
So what are the field you want to display when you have to add that a field in particular, that area.
So I name it as a field.
Fields and fields will be like as a first of all, it will be as a user name, user name, so that all
that actually field counts from our user creation and that if you go so for the user from here, I want
to take out this email field and also for the user creation that is our user where it is.
So that is our user creation.
And if the U.S. here there is a field name as a user name as a password, one password, too.
So no one to actually add all that filter is a field.
And then I don't want to add another one and another one will still be as email.
There is a default one.
So here I want to use it and also take another one as a password.
And that means a password one.
Right.
You can see this file name as a password one.
And also another one is a password too.
So now I want to do and also added it will be as a SIM, which will be as a password to perfect.
So now here we have to do we have to update our this form.
That means here I loaded out this phone for loaded this here.
I have already created one of the function.
Right.
Since The View, since the video I have created one of the function for the sign up so that they all
sign up to the sign up period before I have used directly our user creation from.
So with this user from we get that of this field.
That is our username password and the password.
Right.
So right now I customize it.
I customize it in our form.
So here I customize it with our this class that is our sign up class.
So now we have to do we have to use it.
OK, that means this class idea.
I have added user name, email or another password one and the password too.
So now I have to do I have to update it so that it will be our sign up form.
So into the particular data.
So I just simply updated equipment and I just take the things with this variable and here I just simply
pass it in our dictionary area so it'll be just like the same.
And also here there is a form that is automatically.
So here also we have to update as a sign up from that is our custom class.
So I just simply updated on here.
I hope it's very clear to you.
So if you want to use it, first of all, also you have to load our this form, right.
So that means here we have to import it.
So that is from that is from our which place?
That is from our app logging.
And that is our form.
Right.
So from here we have to do I have to add it as an app logging, app logging and from to the app logging
that have created one of the firebase and that is one of the pages of forms.
So from the forms and the import and import from our app, logging from soundin, put out this class
that is all sign up class or no, I will simply add or sign up class so that the sign up class is visible
in our form and also in the form area.
And then the rest of this will be just like that.
So now if you click Azabal and now if you refresh it.
So now here there is another Felicidad as the email address that a user name, email address, password
and the password and also that is actually view another one.
That means this that is a clever is.
So I make that as required in our that is our form into the form maybe.
And you can see I name it as the email, which will be as email actually I make that as a capital.
So now if you click as save all and now if you refresh it, you can see it's now perfectly gone.
So that is our email field.
And you can see this email file is the request.
Right.
So I make that email file as a request.
And also here, if you want to put some of the level you can at that level, I show you like you have
to do.
We have to add as a level level.
And I just to make that level, I make it as a email address, email address.
Say just name it as an email address.
OK, now if you click on this table and now if you refresh it again.
Yes.
You can see the level is updated as the email address.
Perfect.
So now that is our user name, email address, password and the password.
So friend, I hope you can will understand about each of these username and password and password actually
counts for which place that is comes from our user creation from right.
And also from our user here.
From here.
I want to go on to get our specific one of the field ideas.
So that will be our email.
So four divisions in our field area.
I want to access our email field.
That means in our mind that if we go to our admin, if that means for the user to have of the field
as an email address.
So this name as email.
So now I want to actually use it with our this user class.
Right.
So for the reasons you can see is automatically updated.
And in our view area, I just simply updated our form.
So right now there is our custom format created as a sign up and I just simply updated it on here.
And now we can see everything is updated so that the user name, email address, password and the confirm
password.
So now I want to do I want to create one of the page for the profile like DePrince, this user profile
that means in our template since the template in our app logging here, I want to create all the new
file and I just name it as a profile, not as HTML.
OK, so that will be our profile of this general and it will be just like the same here letter I just
copied.
OK, but I just copy all things from here and I posted in our profile it will be extended our pages,
html and here we don't need any form.
I remove it.
So that will be our title.
This will be as a profile page, should be as a profile page and then our blog body here.
We don't need any form and I want to do the visible some of the name as your profile, OK, which will
be so as your profile.
And also here, if you want to display all that to your name, that means the email address I put on
the PAETEC as a user name, user name if you want to visible.
That will be with our user model.
So here I want to actually use our users.
I have already use it.
So with this user, that is all that our field, you can see that username, feel the password, email,
fast name and the last names.
You've got the visibility and visibility with the user.
So with the user you can visible that user name.
There is a default one.
And also I want to do harm to visible our email.
That Misuzu email and email will be our email field.
Right.
And then that user here, name me to the name name will be as a two part.
That will be one of the first names that they are filename as a fast and as the name of the last ungraceful
name.
So name it as a first name.
And also after that I big or another feel that means our database will field as a last name.
So now I just copy it and here I want to update it as it used our last name.
Perfect.
So now for you this.
Our profile is all we have to do.
We have to create one of the function.
Right.
So that is our view into the video to want to create another function.
And also, if you want to access this, our profile function, this user must have the locking.
Right.
That means, first of all, it will be as a logging declared.
I hope you can well understand about it because of all after that user logging this user, then our
profile visible.
Right.
So that means these users must have to be login.
So for the reasons I make that as a logging declared and then I create another function as a Dave and
then I name it as a profile.
What are.
One, right now, I name it as a profile, and then we have to pass that request and first of all,
I did want to return one of the base as written and there would orender with the render.
And do I want to pass out to this parameter?
One will be at the request and also another will be our file.
So I have created the file in our app logging into the app logging.
I have created our profile that is similar profile, not SDM.
And also I want to pass our data because here we have to also pass on the dictionary to the letter.
So now I make it in the context of the context.
And here I pass that dictionary.
Right now I have no data for the reasons I make it as empty.
And also I want to do I want to add another hour menu.
So that is in our basis html into the way the stimuli and the food, that menu.
So we will be as a laconica.
Right.
So for the app when this user will be locked in, then our D profile min will be visible.
So that will be the profile and also to create in our app logging on to create one part that means on
drought path as a profile.
So that is our profile.
So now to do and create this new order.
So that is, you know, our app logging and that is.
Are you all right.
So here we have to do we have to create it.
I just simply copy and paste.
It is to be as a profile.
It'll will be as a profile.
And then in our view area, I have created one of the function, our function name as a profile.
Right.
So now I just simply copy.
And here, in our view, shall we profile and I name it as a profile and also, you know, basis html
into the way the stimuli load our app logging and then our profile.
Right.
So it's not perfect.
So now let's check this out.
If you click the save all, first of all, to check it.
Yeah, everything is running well and now go to our side and right now to our home, I refresh it.
Right now I'm locking you because it's not showing because of all I already declared that this war in
this user will be logging in our police profile.
Men will be visible, right.
Say just name it as a user name as a test and then password.
You want to see four or five knuckleheads a logging?
Yes.
Because he knows our profile is visible.
That means our profile mainly is visible because a profile.
Yes.
You can see our profile page is now successfully loaded.
So here for this user, I have already added that user name for the reason this is not showing that,
only that username.
So I didn't add any fast name and the last name and also didn't add that email for the reasons you can
still make that as a blank and also blank on here.
So here in our profile e-mail, I loaded our username with this user, our field as a user name, email,
and then our first name and the last name.
So we will put that in your email address and the first name, last name.
Then it should be visible in particular that area.
So here, if you want to change it, like here, if you right now, they have no feel for the image
or name, the last name.
So I want to do and actually change our this profile.
So if you want to change that, they have also another building.
One of the plus I show you there is another class as a password reset.
So that is change user change form.
You can see there is also another class as it user changed from class.
So with this class we can actually update our this field.
OK, that means we can actually update it so we can do that work better.
And to continue this process in our next video, I will show that things with the live example.
So thanks for watching and I will see you in the next video.