1
00:00:00,210 --> 00:00:06,690
Hello, friend, welcome back in previous video, successfully migrate our model, right, so now we

2
00:00:06,690 --> 00:00:09,650
can actually access our admin to know what to do.

3
00:00:09,660 --> 00:00:15,720
I want to, first of all, work for our sign up portion and also the logging that the user and also

4
00:00:15,720 --> 00:00:16,430
that log out.

5
00:00:16,590 --> 00:00:20,440
So for doing this, first of all, I want to do want to create all the form for this one.

6
00:00:20,460 --> 00:00:26,840
So now go to our directories and here that is our app logging into the app logging area.

7
00:00:26,850 --> 00:00:33,510
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

8
00:00:33,520 --> 00:00:34,070
forms.

9
00:00:35,230 --> 00:00:36,600
OK, just name it as a form.

10
00:00:36,600 --> 00:00:39,090
Start by and into the form.

11
00:00:39,090 --> 00:00:39,600
Start by.

12
00:00:39,600 --> 00:00:43,140
First of all, here we have to do we have to import some of the glass.

13
00:00:43,140 --> 00:00:43,460
Right.

14
00:00:43,470 --> 00:00:46,170
So here we have to define that as a form.

15
00:00:46,470 --> 00:00:50,550
Our Django and from the Django that is are forms.

16
00:00:50,550 --> 00:00:51,910
That is also the building.

17
00:00:52,380 --> 00:00:59,700
So from the Django forms, I did want to import our model from OK to simply import our model form.

18
00:00:59,970 --> 00:01:03,030
And also we have to do we have to import our two of this glass.

19
00:01:03,090 --> 00:01:13,030
So from our app login, so from our app underscore logging and from here there is a model's from the

20
00:01:13,050 --> 00:01:20,070
models we have to do, we have to import, we have to import our user user class and also we have to

21
00:01:20,070 --> 00:01:21,870
do we have to import our profile.

22
00:01:21,880 --> 00:01:29,280
Plus, OK, so it is simply defined to have this class on here and also they have the default and that

23
00:01:29,280 --> 00:01:31,740
means in our building that user creation forms.

24
00:01:31,770 --> 00:01:35,100
I also want to take it from that is in our Django Cantrip.

25
00:01:35,640 --> 00:01:42,300
So that is that Django and then the country of the Django country.

26
00:01:42,300 --> 00:01:43,140
That is odd.

27
00:01:43,710 --> 00:01:53,100
And then the forms import that user creation form, user creation, creation form.

28
00:01:53,550 --> 00:01:55,080
OK, just simply import it.

29
00:01:55,410 --> 00:01:57,660
Not wanted to do and to create two of this class.

30
00:01:57,660 --> 00:02:01,290
One will be for our profile and another will be for our sign up.

31
00:02:01,340 --> 00:02:08,520
OK, so here I defined the class and first of all I defined that name as a profile form, like a profile

32
00:02:08,520 --> 00:02:13,880
form, and then it shall be inserted with our this model form.

33
00:02:15,150 --> 00:02:21,150
So here I integrate with this model from that building model from now on to define the middle class

34
00:02:23,310 --> 00:02:28,170
with this middle class here will be a model right under the model area.

35
00:02:28,200 --> 00:02:29,810
That model will be our profile.

36
00:02:31,950 --> 00:02:36,840
So I think, friend, you already know about it because of all that's now disposed to do everything.

37
00:02:36,840 --> 00:02:38,220
I have already discussed about that.

38
00:02:38,220 --> 00:02:40,400
Things we do so into the profile here.

39
00:02:40,410 --> 00:02:47,390
I wanted to exclude like if you go to our model, that means in our app logging, that is models here.

40
00:02:47,390 --> 00:02:51,720
And I have already created one of the class as a profile, similar the profile class.

41
00:02:51,720 --> 00:02:57,300
I wanted to include our dis user, OK, so I want to exclude it and then I want to get all that our

42
00:02:57,300 --> 00:02:59,190
form, that, all that, our field data.

43
00:02:59,490 --> 00:03:01,890
Without this, that means that without this user.

44
00:03:02,250 --> 00:03:09,990
So now if you want to do that work, you have to do have to define that as exclude, OK, exclude our

45
00:03:10,020 --> 00:03:12,410
which field has to include our user.

46
00:03:12,600 --> 00:03:14,980
So I just simply exclude that user.

47
00:03:15,150 --> 00:03:20,970
OK, and also the to create another class and now I name it as a sign up.

48
00:03:22,200 --> 00:03:29,220
OK, sign a form and with the sign a form E will be inherited or another class, the building class

49
00:03:29,220 --> 00:03:30,510
as a user creation form.

50
00:03:30,540 --> 00:03:33,180
So here I just simply defining it.

51
00:03:33,330 --> 00:03:35,840
OK, and then that word middle class.

52
00:03:36,750 --> 00:03:42,420
So that is a class as a matter and the middle class area, it should be as our model.

53
00:03:42,420 --> 00:03:45,780
So our model will be for this one as a user.

54
00:03:46,710 --> 00:03:48,720
So here that is our user model.

55
00:03:48,750 --> 00:03:52,510
OK, so I have already input both of this as a user and the profile.

56
00:03:52,890 --> 00:03:55,080
So now I just simply defined that user.

57
00:03:55,260 --> 00:03:58,260
So from to this user, I want to find that field.

58
00:03:59,250 --> 00:04:07,770
OK, I want to define that fills our field will be as an e mail email and also our password on and the

59
00:04:07,770 --> 00:04:10,250
password to that for the confirmation.

60
00:04:10,770 --> 00:04:15,090
So I the password password one and quarter confirmation.

61
00:04:15,090 --> 00:04:16,280
I want to take another one.

62
00:04:16,560 --> 00:04:17,760
That is a password too.

63
00:04:18,390 --> 00:04:19,740
So that is a password to hear.

64
00:04:19,740 --> 00:04:24,420
I didn't add that username because of all I want to logging with the email address and the password

65
00:04:24,830 --> 00:04:28,250
a so here after that I just put that as a comma.

66
00:04:28,680 --> 00:04:29,180
Perfect.

67
00:04:29,310 --> 00:04:34,230
So now we have to do, we have to create some of the view that means in our view area we have to create

68
00:04:34,230 --> 00:04:37,770
some of the function for this one for display all the torbay's.

69
00:04:38,160 --> 00:04:42,360
So for now in our templates into the template in our app login.

70
00:04:42,370 --> 00:04:44,400
So here I want to create some of the base.

71
00:04:44,580 --> 00:04:49,920
So here I create one of the page as a logging logging dot as HTML.

72
00:04:50,850 --> 00:04:59,730
And also I want to create another file and I just name it as a for the sign up sign underscore abda.

73
00:04:59,860 --> 00:05:00,570
XHTML

74
00:05:03,120 --> 00:05:10,120
and also for the profile, I wanted to create another one, and I just name it as James Profile get

75
00:05:10,530 --> 00:05:16,050
changed and risk profile, not perfect.

76
00:05:16,080 --> 00:05:18,690
So here I have created all that our file.

77
00:05:19,260 --> 00:05:20,930
So we don't need this.

78
00:05:20,940 --> 00:05:22,590
There is a setting also.

79
00:05:22,600 --> 00:05:23,640
We don't need these.

80
00:05:24,210 --> 00:05:27,240
I just simply remove everything from here to now.

81
00:05:27,240 --> 00:05:31,020
First of all, we have to do we have to update our business, Gemalto, into the business.

82
00:05:31,020 --> 00:05:33,270
Timal, what exactly we have to do here?

83
00:05:33,270 --> 00:05:38,970
We have to define all that, our bootstrap link, and also that we are already dead.

84
00:05:39,690 --> 00:05:45,480
If you go to our social project and the social post, they go to the template and the template.

85
00:05:45,480 --> 00:05:47,170
If you go to that page, this HTML.

86
00:05:47,730 --> 00:05:50,670
So now I just simply copy everything from here, OK?

87
00:05:51,300 --> 00:05:52,650
I just copy everything.

88
00:05:53,370 --> 00:05:56,820
And now here I just simply paste it and make that thing so that BHP.

89
00:05:58,600 --> 00:06:05,500
So here there is a PSP, so here I think you already know about it, I just loaded all that our most

90
00:06:05,510 --> 00:06:08,630
abcess fine and that is our body blog.

91
00:06:08,650 --> 00:06:13,100
OK, so that is our citizens blog so that now we don't need this blog here.

92
00:06:13,120 --> 00:06:17,800
I want to already edit one of the static file into the CSA Sadiya here.

93
00:06:17,800 --> 00:06:18,920
I want to put that link.

94
00:06:18,970 --> 00:06:21,190
OK, so I will put that link.

95
00:06:21,560 --> 00:06:25,290
And so if you want to put that link here, you have to have to put that link.

96
00:06:25,300 --> 00:06:30,510
So here that link a link will be in our success that that means here.

97
00:06:30,520 --> 00:06:32,120
So that is in a static area.

98
00:06:32,140 --> 00:06:34,420
So you will have to do have to do finding that link.

99
00:06:35,020 --> 00:06:37,990
So I just simply find this link.

100
00:06:37,990 --> 00:06:42,610
So that will be as a static static into the static here.

101
00:06:42,610 --> 00:06:47,260
We have to define a folder into the folder I have created as a main Dorsets.

102
00:06:47,410 --> 00:06:47,740
Right.

103
00:06:48,160 --> 00:06:53,190
So here, if you use that Xerces, then first of all, here you have to do we have to load this is static.

104
00:06:53,200 --> 00:06:58,130
OK, so first of all, here, here I want to do I want to load it.

105
00:06:58,150 --> 00:07:03,580
So just simply Lord Lord over the static side are simply loaded.

106
00:07:04,000 --> 00:07:08,840
And also here I load our boot straps yourselves and that is our fault or something else.

107
00:07:08,890 --> 00:07:09,170
Right.

108
00:07:09,580 --> 00:07:13,270
So now that is title title will be as a block titled Perfect.

109
00:07:13,270 --> 00:07:15,340
So here I name it as the project.

110
00:07:17,950 --> 00:07:20,190
OK, that will be as e-commerce project.

111
00:07:20,440 --> 00:07:23,760
And here one thing I want to do, want to add some of the meta function.

112
00:07:23,770 --> 00:07:25,840
So here after this.

113
00:07:25,870 --> 00:07:28,250
OK, so that is our meta.

114
00:07:28,310 --> 00:07:33,490
So here I am to do an event that me to see to the meta functionality I want to do here.

115
00:07:33,490 --> 00:07:35,920
I just defined the name will be as a viewport.

116
00:07:37,810 --> 00:07:42,760
So if you already know about that founding developer work, then you will know about it.

117
00:07:42,790 --> 00:07:44,380
So that is actually the font and developer.

118
00:07:44,380 --> 00:07:50,090
What I want to do and to make the things which will be capable with different layout and devices.

119
00:07:50,110 --> 00:07:55,390
So for the regions here in the metro area into the viewport, into the viewport area, you have to define

120
00:07:55,390 --> 00:08:01,690
as wide, OK, wide, and then that device device wide.

121
00:08:03,040 --> 00:08:05,510
So you can also get that from the Google.

122
00:08:05,530 --> 00:08:08,880
So that is pretty much going on at the gold.

123
00:08:09,310 --> 00:08:11,370
And then also you have to define that scale.

124
00:08:11,380 --> 00:08:15,660
That means the initial Eskil initial Eskil.

125
00:08:16,420 --> 00:08:19,120
OK, initially scale here, you have to define that version.

126
00:08:19,360 --> 00:08:22,550
I just define that version as a 1.0, OK?

127
00:08:22,930 --> 00:08:25,390
And also I want to define that another matter.

128
00:08:25,540 --> 00:08:27,430
So here I define another matter.

129
00:08:27,430 --> 00:08:32,530
And this one here I want to do and to do need to show that name.

130
00:08:32,860 --> 00:08:40,200
OK, so here I want to define that one of the GDP is GDP equivalent seem to actually be given the area

131
00:08:40,210 --> 00:08:49,310
I want to define as the X sorry, it shall be the X and then you where that is where that is also capable

132
00:08:49,330 --> 00:08:50,610
with a different device.

133
00:08:50,980 --> 00:08:55,770
So I just simply defined as a compatible, OK, compatible.

134
00:08:55,780 --> 00:09:03,540
And then in our content area, simply the content I define the example that I z will be as the perfect.

135
00:09:03,640 --> 00:09:06,010
So here our best estimate is now ready.

136
00:09:06,030 --> 00:09:07,710
So now we have to do we have to view it.

137
00:09:07,710 --> 00:09:09,160
So go to our view.

138
00:09:09,640 --> 00:09:12,450
That means in our app logging, that is our view.

139
00:09:12,850 --> 00:09:18,010
So here by default, the result, Django Smartcards import surrender and also here around the world

140
00:09:18,010 --> 00:09:19,850
of possibilities to depress Monserrat.

141
00:09:20,920 --> 00:09:22,990
So I think you already know about it right now.

142
00:09:23,000 --> 00:09:26,940
So that is the DP response redirect.

143
00:09:28,540 --> 00:09:28,810
Right.

144
00:09:28,900 --> 00:09:30,190
So that it really responsive.

145
00:09:30,760 --> 00:09:40,600
And also we need that Reverso reverses in our Django, Django and then the Waddell's from the what else?

146
00:09:40,600 --> 00:09:42,750
I want to import our divorce.

147
00:09:43,550 --> 00:09:45,190
OK, to simplify the reverse.

148
00:09:45,190 --> 00:09:50,770
And also if you want to add that Studebaker's, you can also defining it better, which is actually

149
00:09:50,770 --> 00:09:51,700
very much common.

150
00:09:51,730 --> 00:09:52,040
OK.

151
00:09:52,060 --> 00:09:54,240
So this is very much common here.

152
00:09:54,240 --> 00:09:57,100
I want to take all the things on here as TDP.

153
00:09:57,640 --> 00:10:03,310
So as I told you friend, you have to pack this to a new pact is that everything will be very much easier

154
00:10:03,310 --> 00:10:06,830
to you because you need every class for aspecific some of the reason.

155
00:10:07,060 --> 00:10:11,650
So for the reasons here, I take everything that they have are SCDP response.

156
00:10:12,070 --> 00:10:16,060
And now also we here we are to define that our authentication.

157
00:10:16,070 --> 00:10:19,810
So also we have to add we need our authentication form class.

158
00:10:19,810 --> 00:10:25,470
We need our logging to get the logging log out, authenticate everything will be needed.

159
00:10:25,750 --> 00:10:31,170
So for the reasons one by one, I want to add everything like in the Django into the Django that is

160
00:10:31,240 --> 00:10:41,940
country of OK country and then and with the old forms right from the start from to to import, I want

161
00:10:41,970 --> 00:10:44,200
to import our authentication from

162
00:10:47,470 --> 00:10:48,760
authentication form.

163
00:10:49,640 --> 00:10:55,120
So I just simply defended the authentication form and also we need our logging declared.

164
00:10:55,120 --> 00:10:57,490
So that is in our form and.

165
00:10:57,590 --> 00:11:02,220
Jangle and then the country and the country.

166
00:11:02,270 --> 00:11:04,590
Here we have to defend that, our art.

167
00:11:04,760 --> 00:11:12,170
So that is in our decorator's and that is the decorator's into the decorator's.

168
00:11:12,170 --> 00:11:17,720
I want to do want to import and import our logi underscore reoccurred.

169
00:11:19,610 --> 00:11:21,500
OK, that is our rocking record.

170
00:11:21,890 --> 00:11:23,320
So I think you already know about it.

171
00:11:23,330 --> 00:11:31,010
What exactly we use that glass that is our logging record and also our another logging logging class

172
00:11:31,010 --> 00:11:32,670
logout class and all indicate.

173
00:11:32,700 --> 00:11:37,250
We also want to I want to also take it there is our farm into the jungle.

174
00:11:37,400 --> 00:11:39,890
There is a country and the country.

175
00:11:39,890 --> 00:11:40,890
There is an art.

176
00:11:40,910 --> 00:11:43,120
Sorry, Art.

177
00:11:43,460 --> 00:11:47,600
And from here I want to import and both our logging.

178
00:11:47,600 --> 00:11:53,870
Plus I want to import our logout plus and also untampered that authenticate.

179
00:11:56,460 --> 00:12:02,930
OK, I just import that authenticate and then our profile that in our model.

180
00:12:02,930 --> 00:12:03,620
So into the model.

181
00:12:03,620 --> 00:12:05,360
I also want to take our profile.

182
00:12:05,900 --> 00:12:13,700
So here, if you want to take it, that is in our form in our app, logging into the app, logging the

183
00:12:13,700 --> 00:12:14,600
role models.

184
00:12:15,710 --> 00:12:23,150
OK, that is a models from the models I wanted want to import and then put our profile OK and input

185
00:12:23,150 --> 00:12:27,400
our profile and also from all forms that means into the form area.

186
00:12:27,710 --> 00:12:32,660
I have also defined to have this on the profile that is the profile from and the sign up from.

187
00:12:32,660 --> 00:12:33,810
Also we have to take it.

188
00:12:34,280 --> 00:12:37,140
So that is, you know, an app logging and then the forms.

189
00:12:37,150 --> 00:12:43,310
So here I go to the forms from our app logging and then the forms.

190
00:12:45,270 --> 00:12:51,660
OK, from the farms here in the land being pulled out, being put our to of this class that I have created

191
00:12:51,660 --> 00:12:56,040
as a pro profile from and also that is a sign of form.

192
00:12:57,270 --> 00:12:57,610
Right.

193
00:12:57,630 --> 00:13:00,360
So I just simply take note of this to No.

194
00:13:00,360 --> 00:13:02,260
One to do and to create the function.

195
00:13:02,280 --> 00:13:04,560
So now I think you already know about it.

196
00:13:04,560 --> 00:13:07,340
So this will be just like never before possible.

197
00:13:07,710 --> 00:13:13,200
So just name it as a sign up, as a sign, like a sign underscore up.

198
00:13:14,010 --> 00:13:15,900
So I just simply name it as a sign up.

199
00:13:15,900 --> 00:13:18,840
And here we have to we have to pass that thing through the request.

200
00:13:21,270 --> 00:13:28,710
OK, we have to pass that things with the request, so request and then in our form, right to form

201
00:13:28,710 --> 00:13:32,370
and then our form here I have defining it in our sign up form.

202
00:13:32,970 --> 00:13:37,920
I have already defined that form in our form area that we see in our app blogging from period.

203
00:13:37,920 --> 00:13:38,160
Right.

204
00:13:38,640 --> 00:13:40,870
So first of all, here we have to do the same procedure.

205
00:13:40,900 --> 00:13:47,700
We have to create that object and then our if condition, if this request so far from our sign up is

206
00:13:47,730 --> 00:13:50,100
or we passed the post request.

207
00:13:50,100 --> 00:13:50,330
Right.

208
00:13:50,370 --> 00:13:59,550
So here I defend the request as a method and request method when it's to be girly girl post is just

209
00:13:59,550 --> 00:14:08,100
like the same before we did so, then our form rights or form objects here should be received at our

210
00:14:08,100 --> 00:14:08,680
request.

211
00:14:09,240 --> 00:14:13,370
So that is our sign up into the sign up from here.

212
00:14:13,380 --> 00:14:18,950
We have to pass that request and with our posts that are so here, I just simply defined our post.

213
00:14:19,460 --> 00:14:21,260
So now after that I want to check it.

214
00:14:21,270 --> 00:14:31,470
That means that if our form, if our form is valid and is still valid, so initially valid, then it

215
00:14:31,470 --> 00:14:33,750
shall be saved.

216
00:14:33,750 --> 00:14:38,880
This data that we save this form data and then save this data.

217
00:14:38,910 --> 00:14:42,210
So here I just simply say we one would still be safe.

218
00:14:42,210 --> 00:14:49,050
I want to do under the the return and return of the EDP response as to the response to the redirect.

219
00:14:49,060 --> 00:14:54,060
So here is a redirect to our reverse with this reverse gear.

220
00:14:54,060 --> 00:15:00,480
We have to pass that things with our base here I want to do when they sign up will be the complete idiots

221
00:15:00,480 --> 00:15:02,120
who will dictate to a logging base.

222
00:15:02,130 --> 00:15:02,480
Right.

223
00:15:02,760 --> 00:15:04,640
So right now, I didn't create any logging page.

224
00:15:04,650 --> 00:15:07,100
So now we have to do we have to create it and else.

225
00:15:07,260 --> 00:15:13,590
So here we have to pass it that then it will be in our safe condition area.

226
00:15:13,620 --> 00:15:21,120
So here I defend the return it will be then render OK with the standard that is a request.

227
00:15:21,510 --> 00:15:23,620
And here we have to load our sign up based.

228
00:15:23,630 --> 00:15:30,920
So in particular that position in our app logging into the app logging, I have created our page.

229
00:15:30,930 --> 00:15:31,260
Right.

230
00:15:31,280 --> 00:15:38,820
So you know, our app logging, I have created as a sign under this crap sign underscore up not as HTML.

231
00:15:40,020 --> 00:15:42,900
And now also you have to pass our form.

232
00:15:42,900 --> 00:15:49,290
So in our context into the context area, we have to do we have to pass it.

233
00:15:49,290 --> 00:15:50,820
I have to pass our form.

234
00:15:52,800 --> 00:15:58,930
So I just simply pass that form so far, except this sign up we have to do we have to create one of

235
00:15:58,950 --> 00:15:59,850
the real space.

236
00:15:59,850 --> 00:16:00,200
Right.

237
00:16:00,660 --> 00:16:07,950
So that means, you know, what app logging that is are also here in our new area here.

238
00:16:07,950 --> 00:16:09,450
We have to define that part.

239
00:16:09,990 --> 00:16:17,460
So to simply define that part and here I define that is somebody Dakotah sign up to be able to sign

240
00:16:17,460 --> 00:16:17,780
up.

241
00:16:17,790 --> 00:16:19,660
So in particular that area.

242
00:16:19,680 --> 00:16:25,960
So after this after this year in our views, they have already improved our views.

243
00:16:25,960 --> 00:16:32,310
So the views area I have already created on the function, if you go to our views, have created the

244
00:16:32,310 --> 00:16:33,740
function as a sign of pride.

245
00:16:33,750 --> 00:16:37,470
So I just simply define our function name and also I put that name.

246
00:16:37,480 --> 00:16:38,880
So here I defined that name.

247
00:16:38,880 --> 00:16:40,460
Name will be at the sign up.

248
00:16:42,120 --> 00:16:43,830
OK, it shall be as a sign up.

249
00:16:44,030 --> 00:16:45,780
Perfect sign up order.

250
00:16:46,080 --> 00:16:50,400
And also, you know, our main project, that means, you know, our positive URL.

251
00:16:50,420 --> 00:16:53,700
So here I have already included our app logging you out.

252
00:16:53,880 --> 00:16:59,610
So it will be as a accounts and these accounts now are nowadays you are a little we are activated.

253
00:16:59,610 --> 00:16:59,880
Right.

254
00:16:59,880 --> 00:17:00,860
That is our sign up.

255
00:17:01,350 --> 00:17:03,420
So here I have already added this part.

256
00:17:03,420 --> 00:17:04,020
Perfect.

257
00:17:04,230 --> 00:17:05,940
So now in our view.

258
00:17:06,060 --> 00:17:11,790
So here I want to do as I told you, when this user will be completed successfully sign up and submitted

259
00:17:11,790 --> 00:17:12,940
after a logging page.

260
00:17:12,960 --> 00:17:13,150
Right.

261
00:17:13,200 --> 00:17:18,330
So for the logging we have to do, we have to also create another function.

262
00:17:18,330 --> 00:17:20,730
So here we have to do appropriate another function.

263
00:17:21,090 --> 00:17:23,070
So better than to continue this process.

264
00:17:23,070 --> 00:17:29,190
You know, next video, I'll create another function for our logging and also for the log out so we

265
00:17:29,190 --> 00:17:30,060
can do that work.

266
00:17:30,060 --> 00:17:33,180
In our next video, I will show that things with a live example.

267
00:17:33,450 --> 00:17:36,660
So thanks for watching and I will see you in the next video.
