Hello, friend, welcome back in previous video, successfully migrate our model, right, so now we
can actually access our admin to know what to do.
I want to, first of all, work for our sign up portion and also the logging that the user and also
that log out.
So for doing this, first of all, I want to do want to create all the form for this one.
So now go to our directories and here that is our app logging into the app logging area.
I want to create the form for our sign up, so I just click on the new file and I just name it as the
forms.
OK, just name it as a form.
Start by and into the form.
Start by.
First of all, here we have to do we have to import some of the glass.
Right.
So here we have to define that as a form.
Our Django and from the Django that is are forms.
That is also the building.
So from the Django forms, I did want to import our model from OK to simply import our model form.
And also we have to do we have to import our two of this glass.
So from our app login, so from our app underscore logging and from here there is a model's from the
models we have to do, we have to import, we have to import our user user class and also we have to
do we have to import our profile.
Plus, OK, so it is simply defined to have this class on here and also they have the default and that
means in our building that user creation forms.
I also want to take it from that is in our Django Cantrip.
So that is that Django and then the country of the Django country.
That is odd.
And then the forms import that user creation form, user creation, creation form.
OK, just simply import it.
Not wanted to do and to create two of this class.
One will be for our profile and another will be for our sign up.
OK, so here I defined the class and first of all I defined that name as a profile form, like a profile
form, and then it shall be inserted with our this model form.
So here I integrate with this model from that building model from now on to define the middle class
with this middle class here will be a model right under the model area.
That model will be our profile.
So I think, friend, you already know about it because of all that's now disposed to do everything.
I have already discussed about that.
Things we do so into the profile here.
I wanted to exclude like if you go to our model, that means in our app logging, that is models here.
And I have already created one of the class as a profile, similar the profile class.
I wanted to include our dis user, OK, so I want to exclude it and then I want to get all that our
form, that, all that, our field data.
Without this, that means that without this user.
So now if you want to do that work, you have to do have to define that as exclude, OK, exclude our
which field has to include our user.
So I just simply exclude that user.
OK, and also the to create another class and now I name it as a sign up.
OK, sign a form and with the sign a form E will be inherited or another class, the building class
as a user creation form.
So here I just simply defining it.
OK, and then that word middle class.
So that is a class as a matter and the middle class area, it should be as our model.
So our model will be for this one as a user.
So here that is our user model.
OK, so I have already input both of this as a user and the profile.
So now I just simply defined that user.
So from to this user, I want to find that field.
OK, I want to define that fills our field will be as an e mail email and also our password on and the
password to that for the confirmation.
So I the password password one and quarter confirmation.
I want to take another one.
That is a password too.
So that is a password to hear.
I didn't add that username because of all I want to logging with the email address and the password
a so here after that I just put that as a comma.
Perfect.
So now we have to do, we have to create some of the view that means in our view area we have to create
some of the function for this one for display all the torbay's.
So for now in our templates into the template in our app login.
So here I want to create some of the base.
So here I create one of the page as a logging logging dot as HTML.
And also I want to create another file and I just name it as a for the sign up sign underscore abda.
XHTML
and also for the profile, I wanted to create another one, and I just name it as James Profile get
changed and risk profile, not perfect.
So here I have created all that our file.
So we don't need this.
There is a setting also.
We don't need these.
I just simply remove everything from here to now.
First of all, we have to do we have to update our business, Gemalto, into the business.
Timal, what exactly we have to do here?
We have to define all that, our bootstrap link, and also that we are already dead.
If you go to our social project and the social post, they go to the template and the template.
If you go to that page, this HTML.
So now I just simply copy everything from here, OK?
I just copy everything.
And now here I just simply paste it and make that thing so that BHP.
So here there is a PSP, so here I think you already know about it, I just loaded all that our most
abcess fine and that is our body blog.
OK, so that is our citizens blog so that now we don't need this blog here.
I want to already edit one of the static file into the CSA Sadiya here.
I want to put that link.
OK, so I will put that link.
And so if you want to put that link here, you have to have to put that link.
So here that link a link will be in our success that that means here.
So that is in a static area.
So you will have to do have to do finding that link.
So I just simply find this link.
So that will be as a static static into the static here.
We have to define a folder into the folder I have created as a main Dorsets.
Right.
So here, if you use that Xerces, then first of all, here you have to do we have to load this is static.
OK, so first of all, here, here I want to do I want to load it.
So just simply Lord Lord over the static side are simply loaded.
And also here I load our boot straps yourselves and that is our fault or something else.
Right.
So now that is title title will be as a block titled Perfect.
So here I name it as the project.
OK, that will be as e-commerce project.
And here one thing I want to do, want to add some of the meta function.
So here after this.
OK, so that is our meta.
So here I am to do an event that me to see to the meta functionality I want to do here.
I just defined the name will be as a viewport.
So if you already know about that founding developer work, then you will know about it.
So that is actually the font and developer.
What I want to do and to make the things which will be capable with different layout and devices.
So for the regions here in the metro area into the viewport, into the viewport area, you have to define
as wide, OK, wide, and then that device device wide.
So you can also get that from the Google.
So that is pretty much going on at the gold.
And then also you have to define that scale.
That means the initial Eskil initial Eskil.
OK, initially scale here, you have to define that version.
I just define that version as a 1.0, OK?
And also I want to define that another matter.
So here I define another matter.
And this one here I want to do and to do need to show that name.
OK, so here I want to define that one of the GDP is GDP equivalent seem to actually be given the area
I want to define as the X sorry, it shall be the X and then you where that is where that is also capable
with a different device.
So I just simply defined as a compatible, OK, compatible.
And then in our content area, simply the content I define the example that I z will be as the perfect.
So here our best estimate is now ready.
So now we have to do we have to view it.
So go to our view.
That means in our app logging, that is our view.
So here by default, the result, Django Smartcards import surrender and also here around the world
of possibilities to depress Monserrat.
So I think you already know about it right now.
So that is the DP response redirect.
Right.
So that it really responsive.
And also we need that Reverso reverses in our Django, Django and then the Waddell's from the what else?
I want to import our divorce.
OK, to simplify the reverse.
And also if you want to add that Studebaker's, you can also defining it better, which is actually
very much common.
OK.
So this is very much common here.
I want to take all the things on here as TDP.
So as I told you friend, you have to pack this to a new pact is that everything will be very much easier
to you because you need every class for aspecific some of the reason.
So for the reasons here, I take everything that they have are SCDP response.
And now also we here we are to define that our authentication.
So also we have to add we need our authentication form class.
We need our logging to get the logging log out, authenticate everything will be needed.
So for the reasons one by one, I want to add everything like in the Django into the Django that is
country of OK country and then and with the old forms right from the start from to to import, I want
to import our authentication from
authentication form.
So I just simply defended the authentication form and also we need our logging declared.
So that is in our form and.
Jangle and then the country and the country.
Here we have to defend that, our art.
So that is in our decorator's and that is the decorator's into the decorator's.
I want to do want to import and import our logi underscore reoccurred.
OK, that is our rocking record.
So I think you already know about it.
What exactly we use that glass that is our logging record and also our another logging logging class
logout class and all indicate.
We also want to I want to also take it there is our farm into the jungle.
There is a country and the country.
There is an art.
Sorry, Art.
And from here I want to import and both our logging.
Plus I want to import our logout plus and also untampered that authenticate.
OK, I just import that authenticate and then our profile that in our model.
So into the model.
I also want to take our profile.
So here, if you want to take it, that is in our form in our app, logging into the app, logging the
role models.
OK, that is a models from the models I wanted want to import and then put our profile OK and input
our profile and also from all forms that means into the form area.
I have also defined to have this on the profile that is the profile from and the sign up from.
Also we have to take it.
So that is, you know, an app logging and then the forms.
So here I go to the forms from our app logging and then the forms.
OK, from the farms here in the land being pulled out, being put our to of this class that I have created
as a pro profile from and also that is a sign of form.
Right.
So I just simply take note of this to No.
One to do and to create the function.
So now I think you already know about it.
So this will be just like never before possible.
So just name it as a sign up, as a sign, like a sign underscore up.
So I just simply name it as a sign up.
And here we have to we have to pass that thing through the request.
OK, we have to pass that things with the request, so request and then in our form, right to form
and then our form here I have defining it in our sign up form.
I have already defined that form in our form area that we see in our app blogging from period.
Right.
So first of all, here we have to do the same procedure.
We have to create that object and then our if condition, if this request so far from our sign up is
or we passed the post request.
Right.
So here I defend the request as a method and request method when it's to be girly girl post is just
like the same before we did so, then our form rights or form objects here should be received at our
request.
So that is our sign up into the sign up from here.
We have to pass that request and with our posts that are so here, I just simply defined our post.
So now after that I want to check it.
That means that if our form, if our form is valid and is still valid, so initially valid, then it
shall be saved.
This data that we save this form data and then save this data.
So here I just simply say we one would still be safe.
I want to do under the the return and return of the EDP response as to the response to the redirect.
So here is a redirect to our reverse with this reverse gear.
We have to pass that things with our base here I want to do when they sign up will be the complete idiots
who will dictate to a logging base.
Right.
So right now, I didn't create any logging page.
So now we have to do we have to create it and else.
So here we have to pass it that then it will be in our safe condition area.
So here I defend the return it will be then render OK with the standard that is a request.
And here we have to load our sign up based.
So in particular that position in our app logging into the app logging, I have created our page.
Right.
So you know, our app logging, I have created as a sign under this crap sign underscore up not as HTML.
And now also you have to pass our form.
So in our context into the context area, we have to do we have to pass it.
I have to pass our form.
So I just simply pass that form so far, except this sign up we have to do we have to create one of
the real space.
Right.
So that means, you know, what app logging that is are also here in our new area here.
We have to define that part.
So to simply define that part and here I define that is somebody Dakotah sign up to be able to sign
up.
So in particular that area.
So after this after this year in our views, they have already improved our views.
So the views area I have already created on the function, if you go to our views, have created the
function as a sign of pride.
So I just simply define our function name and also I put that name.
So here I defined that name.
Name will be at the sign up.
OK, it shall be as a sign up.
Perfect sign up order.
And also, you know, our main project, that means, you know, our positive URL.
So here I have already included our app logging you out.
So it will be as a accounts and these accounts now are nowadays you are a little we are activated.
Right.
That is our sign up.
So here I have already added this part.
Perfect.
So now in our view.
So here I want to do as I told you, when this user will be completed successfully sign up and submitted
after a logging page.
Right.
So for the logging we have to do, we have to also create another function.
So here we have to do appropriate another function.
So better than to continue this process.
You know, next video, I'll create another function for our logging and also for the log out so we
can do that work.
In our next video, I will show that things with a live example.
So thanks for watching and I will see you in the next video.