Hello, friend, welcome back.
In a previous video, we successfully created our model, so here I have created one of the model as
a user info and now I want to do load this, all that our information that we the user from to the user.
I want to do want to take some of the field and also from our user info and from the user info here
have defined our Facebook idea and the profile picture.
So now I have to do to add all the things in our form area.
So for doing this, we have to do we have to create one of the form.
Right.
So now we don't need this.
I just simply remove it.
And also we don't need this every little bit.
So now in our application, that means, you know, logging application area into the logging application
area.
I want to create one of the forms.
So if you want to create it, I think you already know about it.
So, you know, logging formally, I want to create one of the file as a forms.
OK, right from start.
So just because a name.
So that is actually our name.
So with this form I want to do on the Lord all the tower field and here I am looking at the register
plays into the register page, first of all, I want to load all the tower feel right.
So now I to do the work for doing this in our form media, we have to define all the third class.
So first of all, we have to do we have to add all that our default form.
So if you to define our default lively, that means a form liberty so that it can go into the jungle.
We have to import import our default equity as a form slavery.
Right.
So I just simply defended the form slavery.
And also we have to do we have to define our authenticated model.
That means here I have already defining it.
So that is actually the things we have to do.
I just simply copied so that other models also you have to add our these Django that contribute our
authenticated model into the authenticated model here.
Also, we have to import our user because of all.
Also, we have to get all the data from the user.
Right.
So far the regions here, we have to add it.
And also in our model into the model.
I have also created another class as Infl that means that user info.
So so also we have to import this info right into the form area.
I just simply defined as a form.
So that is in our logging app, that is a logging and then app.
And in the logging app I define the models and then I want to import, I want to import our this class
that is actually the user info.
So I just simply copied and now here I import RDA info.
Perfect Redfearn and now I want to do and create two class one class from the user.
So with this user I want to take as our as I told you with this user, I want to take all that our user
details that we saying to the user, I want to take that username user email address and the password.
And also I have created another one.
So that is our info from here.
I want to take only Tuffield as it will be as a Facebook field and the profile picture field.
All right.
So now I show you everything will be very much clear to you.
Don't worry.
So I just simply defined the class, right?
The class and then our name it as a user user form.
I just simply defined as a user form and then our D form, that means this form class here, that we
have to inherit it with our other model that is a model form.
So I just simply defined as a model form.
And after this also we have to do we have to edit our middle class sizes and be different as a matter
that is our middle class and into this middle class area.
We have to define that model.
So I guess we define the model.
And this model will be our this is our model.
Right.
So with this user model, we will get all the tower field.
That means our user name field email field and the pass or fail.
Right.
So now I just simply copied.
So here with this user, with this user, I want to do all the different, all that or field.
OK, all did our fields and our field name I want to do and display our full name will be, first of
all, as a username and also I to undertake another field.
Another field will be the email and also underdo undertake another field as a password.
Right.
So I just simply defined three of this field so far.
And I think you can all understand about it because of all in our user model into the user model, I
have already all the default field.
Right.
So there have also already default all that field.
If you go home into the user, you can see they have already by default all that field.
Right.
And also if you want to take that first name, that last name, you can take it rather than it's right
now it's OK with me.
So I only want to take from our user as a user name, email and the password perfect.
And also want to do and to create another one and to do and to create another one, another class for
our user info.
So I just simply defined as the class and then I just name it as a user in full.
OK, you are in for form.
Just name it as a user info from one of the class name and here it shall be just like that.
Same with the forms and then it to be an inherited hour, another model form.
And also here we have to define our middle class.
So I just simply defined as a middle class and into this middle class area, we have to define that
model.
So for this one, I have already created this model.
So our modest model name as a user info and into this user info model here I have defined two of this
will write.
One is the Facebook idea and there is a profile, so no one will undertake to have this.
I just simply defined as your user model and into this user info here.
I want to do how to define our first name right.
And define our first name, our field name from our model and to do to get our two of this film, one
will be as a Facebook idea and will be as a profile picture.
So I just simply defined as a book I fast.
So here our one file will be as a Facebook idea.
Another field will be as a profile picture.
I think it is step by step.
Everything is very much Giulietta right now.
Right.
So here I have defined two of these fields.
So one will be from user to model, from the user model.
I get this field as the user name field email field and the password field.
And from our user info, that means far more easily in class here.
From here, I want to get some of the field as a Facebook field and the profile picture field.
So now I want to do I want to load our this form and also I want to load our this from it.
No one pays, OK?
For the reasons we have to do.
We have to create as Tamalpais that piece in our template in a logging here and to do and to create
one of the new file.
And I just name it as a register register dot estimates.
Right.
So no, I just simply added.
So here also we have to do we have to add at our this extended site to simply copy it from the index
and here I just simply paste it so I just simply remove it and we don't need this.
So that will be as extended, extended or logging business e-mail.
And also that is our body.
That is our main block party.
Right.
And also previously I have already discussed about the things we do here.
We have if you want to load some of the form, then you have to define one of your static file data.
That means here in particular, that position.
So in basic, we have already completed.
So now we are actually using it on here.
So load and the static.
So I just simply defined as a load of static data.
OK, that means all the downloader static files will be loaded in particular that position for the reasons
here, I have defined that our Lord static.
So as I told your friend, first of all, you already know about that all bezique.
So now we step by step, we go more deep.
So now we are using it in our disposal and later we will create three different project.
As I told you, we will create one of the block project.
We will create one of the social media project.
And after that, also we will create on the e-commerce project.
Right.
So don't worry, a step by step of end of this, everything will be very much cleared to you.
So now here I am creating one of this Tamalpais of registered voters, Tamalpais.
So now we have to do we have to load it right.
So if you want to load it, then we have to defining it, in our view to the view into the view area.
I have already created one of the function as indexed.
So now we have to do we have to create another function.
So I just simply define another function as a register.
Right.
I just simply defined that name as a register.
And with this request, the request area, we have to do we have to pass our dictionary.
So just name it as a date again.
So first of all, I want to make the things as the empty and then the return and the render right.
Return render and then here we have to do have to pass that request and here we have to load our pace.
So that is in our logging app.
OK, into the locking app, I have created one of the base of the register, so to simplify it, instead
of the e-mail and then also we have to do we have to parse that context into the context of, yeah,
we have to parse out this text.
Right.
So I just simply pass it.
And now also we have to do we have to get all the data from all forms right into the forms I have created
to have this one is the one class name I have defined as a user form, and that is our user info form.
So don't we have to load?
That means we have to import two of these in our view area.
That means, in our view, right into the view area.
I want to do and load it fast as a form from our locking up in lugging a folder I have created out of
this file as a form.
So I just simply defined the forms.
Right.
And then I want to do and input so from our forms area.
I want to import two of this one actually our this user form.
So I have to load it.
Let me have the imported and also I want to put out another one.
I would put on another class as a user in four forms.
I just simply also load two of this on here and now we have to do we have to load our all that field.
That means in our diskless that means our user form into the user form.
Here I have defined our tree field and also that is our user info form.
Here I have defined our tool of this field.
So now we have to load to have this right, so we have to load to have this in our registered base.
So for doing this, we have to do we have to define our objects.
I just simply defined as the user underscore form.
So when did the user form I have to load our diskless name.
So our last name I have defined as a user form, so I just simply create this object.
And also we have to define the same things as a user.
I take as a user underscore for underscore form.
Right.
And here also we have to create our this object.
So that is our user info form.
So just simply defining it like a friend I think is very much clear to you.
So know, also we have to do we have to pass both of this.
We have to pass our this user info that means this user form and also use that info form in our dictionary,
because here we have to pass all that form in order this.
Right.
So I have already passed our D.
D in our contact area.
That means we can actually use it in our register for the reasons that we have to do.
We have to pass it.
So I just simply pass it on here.
That will be as a user form and I just pass our user form.
Right.
And also I want to do and pass our user info form.
So here I just simply pass the info from.
So now we have to do have to display to have this, you know, register e-mails and go to the registers.
Jemal Here, here I want to do and to create one the form.
And here we don't need this class and also we don't need this any action.
So just simply we will be OK.
So that will be method.
Method will be as a post method.
And also here one simply the form.
I have also passed one of the field as the profile picture.
That means that picture type.
Right.
So when you pass anything into the profile, then you have to do we have to define one, the NC type.
That means in our NC type, that means you register in the form area here we have to do we have to pass
it.
So I just simply pass the NC type and NC type will be as a multiplatform data.
OK, so make sure you use it and then you units will be not working.
So after that also no one to want to display our two of these data, what that was labeled as positive
things from our view.
So from our view I pass our user form.
That means this is actually user form.
So here I just simply pasted and also we have to define our another one.
Another one is that user info form.
So just simply pass the info form.
And also here we have to define our CSF token, right.
So we don't see a set of token.
We cannot actually submit this data.
So I just simply defined as a C srf underscore token.
So to simply define it, OK, and then I want to define all the submit button.
So just simply defined as the input type input type will be at the submit and the name I name it as
a submit and also the value and value I define as a register.
Yeah, just name it.
The rest are, well, perfect, and after that, what exactly we have to do, we have to define something.
You are right, because here we have to access it.
So you have to go to your application.
That means our logging application.
And here you are.
So now I want to create another liberal for our registration.
That means the register I name ID at the register.
OK, name ID at the register and the view.
I just named that our function name.
I have create that function in our view.
That is actually the register I just simply copied.
And now you know what, you are still here.
I name it as a register and also name register.
OK, that is in our view, I have created this function or function name as a register and that is actually
our name register.
Perfect.
So no one to do.
Want to add this panel.
I want to add this man in our site that means here on to create another menu at the register.
So that is in our basic order.
So now go to our profile and see is our baseball.
So that is actually that is step by step process.
OK, so I think if you actually participate in actually very much clear to you.
So I just named our menu name at the register, OK, I just name it as a register.
And also here we have two possibly Wadle so here I just simply pass out you are and then interlocking
apps.
I have defined our app name as a logging app into the logging app.
I named this part of the register State Assembly copy and now here I may meet at the register.
Perfect.
So now let's check this out.
If you know, click as Save Savol, I just click the save all.
I want to check our Sara.
Yeah, you can see Salvetti still perfectly running, they have no head or no go to our side, refresh
it now.
Go to the register.
Yes, you can see snow perfectly displayed our user name every feel better I want to do I want to actually
make the things that the better I get up there will be better.
So I think you already know about it.
So, you know, register here, here.
So that is our tour of this form table.
So not I to do and defend us as battlegroup and also use should be visible as an escort paragraph.
OK, then it will be as a one line, no click as a save all say the simplest level and then go here
refresh it.
Yeah.
You can see that the username, the email feel and the password field.
And also I define another one as a Facebook idea and the profile picture of a friend I hope now should
be very much easier to use.
Everything is now perfectly getting on particular that area.
So that is the things I have defined.
Right.
So if you go to our form, so into the form area scene to the media, you can see I have defined two
of these.
That is actually what the user name field email field and the password field that is.
I have defined that class name as a user from and also I have created another class as a user info form
and user info area.
I define that model name that they are using for model here.
I define two of this field.
One is the Facebook and the profile picture.
And after that I define two of these in our view area seem to the view area.
I define what the function of the register and in the register area you can see I load our one form.
That means that is our user form.
And also I load our another form as a user info form.
Then I just pass all the data with this dictionary and then I pass our user form data and also pass
our user in for info from data in order to Starbase Base with this context.
So into the registered e-mail it the register is simply printed.
So you can see I just printed out one form and there is actually another form.
So now two of this is now perfectly visible, all with all that our field.
Right.
And also it's organized by our class like here if you go our form and with the form here, you can say
define that username, the email and the password.
So far the results are showing.
First of all, that is our user name field and the email field and then the password field.
So if you want to make the things first of all, user name and password, then you can also change it
like I just copied here, name it as a password and then our position at the front of the email.
Now click as I save all.
And now refresh it.
Now, casinos, first of all, showing us the username and password, so here you can put your username
here, you can put your password, but for the password you see snowshoeing as a plain text.
So here for the password, we have to also define as a hidden that means the password type.
So if you want to add that password type, I think you already know about it.
So you have to do we have to define some of the attributes for this one.
That means that we get attribute with this.
We can get attribute, we can do it.
So sure, you and you, if you want to change it, you have to do your toward your form area.
So that is our user form.
Right.
So in particular, that position I have to do I have to define of the variable of the password.
OK, just defined the password and then with the forms, seal the forms.
I have defined the type as they will be as a character tag.
OK, character, field type and the character field ever defined it, we get so we get our forms, so
I just simply defend the forms and also they have another type as a password import.
So I just simply defined the password in port.
OK, password input.
So that is also the type.
So he had a habit of defending it.
So I just simply defined that things with this you get and the form and the password important now because
they save all.
Check this out.
Everything is running well, maybe, yeah, everything is running well, refresh it.
So now it's not showing the plain text here that is actually our password type perfect.
And also, you can see that it's actually very close to our menu.
So here I want to turn to sound the style that is a booster pairing.
I want to add it, then it'll be better.
So that is, you know, our best e-mail into the biggest email.
That is our container here and to do and the definably style.
And I just simply defending the padding padding top and I just simply defend wearing top as this already
padding top as a 20 pixel then little be better.
Now I just got to save all.
And I'll go here and refresh it.
Yeah, you can see it's not perfect, so that is our home.
And now if you want to register your account now, you at the register or register page will be loaded.
So, friend, here, I'm not focusing to design this particle.
We will do that things in our pulisic.
But right now I want to actually share all that main thing.
That means the main cool things.
The for the reasons here, I'm not using some of the cases or the Chasez for that better look.
So now it's OK with me so that I'm all that our feel.
So, you know, next we do I want to do want to create one of the register option like here if you put
your username, password, email address and the Facebook idee, the profile picture, and after that
the register is should be registered all the data and it should be registered that data in this area.
OK, so how can do that work?
In our next video, I will show that things with a live example.
So thanks for watching.
I will see you in the next video.