1
00:00:00,180 --> 00:00:01,740
Hello, friend, welcome back.

2
00:00:02,070 --> 00:00:06,990
In this video, I want to discuss about how can working with the users sign up option?

3
00:00:07,350 --> 00:00:12,510
So for the users sign up option in Django, they have sold the building class like here.

4
00:00:12,510 --> 00:00:18,000
If you go to that documentation and if you start with that user, that means that using that django

5
00:00:18,000 --> 00:00:18,840
authentication.

6
00:00:19,170 --> 00:00:24,420
So the documentation here, if you succeed, then you will get some of the resources.

7
00:00:25,290 --> 00:00:33,810
If you go a bit down and here that have out, you consider that one of the class as a password change

8
00:00:33,810 --> 00:00:36,630
from there is one of the password reset form.

9
00:00:36,930 --> 00:00:42,750
And also there is a password that said password from and also will discuss about that things with you

10
00:00:42,750 --> 00:00:43,200
later.

11
00:00:43,560 --> 00:00:48,360
And then also there is a user creation form and into the U.S. form.

12
00:00:48,420 --> 00:00:54,600
When you use this class, when you use this class by default, you will get some of the field is actually

13
00:00:54,600 --> 00:01:00,980
providing some of the feel for that user name and the password and the password so that the filename

14
00:01:00,990 --> 00:01:03,500
as a password one and the password to.

15
00:01:03,900 --> 00:01:09,150
So with using this class, that means that U.S. class will get this tab, all that field.

16
00:01:09,150 --> 00:01:13,050
And with this field you can create your sign a portion for your user.

17
00:01:13,440 --> 00:01:14,690
So you can do that work.

18
00:01:14,700 --> 00:01:20,130
In this video, I will show you that things with the live example so far working with this form.

19
00:01:20,140 --> 00:01:22,580
First of all, we have to do we have to import it.

20
00:01:22,590 --> 00:01:26,390
That means that there are positive reviews, that we don't need this.

21
00:01:26,400 --> 00:01:28,230
I just simply close everything.

22
00:01:28,230 --> 00:01:31,490
And now I want to work in this application.

23
00:01:31,500 --> 00:01:37,020
That is our app logging application, as I told you, which is related with our authentication.

24
00:01:37,020 --> 00:01:40,410
Everything I want to save, in particular this application area.

25
00:01:40,710 --> 00:01:45,120
And here, first of all, we have to do we have to go to our view and into the view area.

26
00:01:45,120 --> 00:01:48,000
First of all, I want to do on to empower this class.

27
00:01:48,000 --> 00:01:50,000
That means that user creation from class.

28
00:01:50,010 --> 00:01:50,400
Right.

29
00:01:50,640 --> 00:01:54,230
So fundamentally is step by step, everything will be more clear to you.

30
00:01:54,480 --> 00:01:57,930
So for now, I want to do want to take it that is in our form.

31
00:01:57,930 --> 00:01:58,920
And then Django.

32
00:01:59,940 --> 00:02:07,220
So from the Django, that is a country form to the country and then that and then the forms.

33
00:02:08,130 --> 00:02:14,070
So from the forms here, from here, you have to able to input our this class, our class name.

34
00:02:14,400 --> 00:02:16,990
As I told you, that is our user creation form.

35
00:02:17,200 --> 00:02:17,530
Right.

36
00:02:17,550 --> 00:02:18,900
So I just simply copy it.

37
00:02:19,200 --> 00:02:21,360
And now here I just simply import it.

38
00:02:21,810 --> 00:02:23,460
So make sure you input it.

39
00:02:23,460 --> 00:02:29,010
And as I told you, when you imported it, providing some of the form of the value data, that means

40
00:02:29,010 --> 00:02:33,640
it's actually providing for the field as a username password and the password, too.

41
00:02:33,990 --> 00:02:40,130
So I want to do I want to create all of the function and I just name it function as a whatever you want.

42
00:02:40,140 --> 00:02:40,860
I know.

43
00:02:40,860 --> 00:02:42,120
I name it as a sign up.

44
00:02:42,870 --> 00:02:46,100
I can sign underscore sorry, saying underscore app.

45
00:02:46,110 --> 00:02:51,330
So this step up on the function name I want to create and this function here, as I told you, it will

46
00:02:51,330 --> 00:02:52,890
be passed on the request.

47
00:02:52,890 --> 00:02:53,110
Right.

48
00:02:53,580 --> 00:02:55,890
So it should be passed on the request.

49
00:02:55,890 --> 00:03:01,710
I just simply pass on the perimeter as a request parameter and then I take one of the variable as a

50
00:03:01,710 --> 00:03:09,000
form and into the form variable area here I want to create of the object or this class object.

51
00:03:09,020 --> 00:03:11,150
So that is our education from here.

52
00:03:11,160 --> 00:03:18,010
I just simply created OK, and then here I want to do want to make that our start as a false.

53
00:03:18,010 --> 00:03:19,710
So we decided this fall.

54
00:03:19,710 --> 00:03:25,620
That means first of all, design a portion will be as false and then I will make that as a true.

55
00:03:25,620 --> 00:03:30,810
That means when our total data will be saved and after that I want to make that user at the register.

56
00:03:31,170 --> 00:03:33,870
So for the reasons here, I take the register

57
00:03:36,240 --> 00:03:39,060
register and I make that register as a false.

58
00:03:40,080 --> 00:03:42,210
It will be as it falls for the first time.

59
00:03:42,210 --> 00:03:48,000
And then I want to pause on the condition as if condition and receive conditionally and forward from

60
00:03:48,120 --> 00:03:48,470
here.

61
00:03:48,480 --> 00:03:53,490
Also, I have to do I have to create one of the template and from the template area we have to load

62
00:03:53,700 --> 00:03:54,510
our form.

63
00:03:54,510 --> 00:03:54,820
Right.

64
00:03:55,080 --> 00:03:57,570
So that will be what the Post matters right now.

65
00:03:57,570 --> 00:04:00,470
Want to do that work in our function area.

66
00:04:00,810 --> 00:04:06,980
That means here I want to put on the if condition, if already exist, one of the requests that I want,

67
00:04:07,020 --> 00:04:10,510
I will pass from another page, that bizarre form piece.

68
00:04:10,770 --> 00:04:14,480
So here I just simply take it as a request and method.

69
00:04:15,900 --> 00:04:17,310
So that will be our method.

70
00:04:17,310 --> 00:04:19,770
And first of all, it will be check it, it shall be checked.

71
00:04:19,770 --> 00:04:23,520
That is actually our post or not that in the post or the gate.

72
00:04:23,520 --> 00:04:24,870
First of all, it will be check it.

73
00:04:24,870 --> 00:04:25,130
Right.

74
00:04:25,410 --> 00:04:33,060
And after that, I want to do I want to take over this user that is this form and here and simply load

75
00:04:33,060 --> 00:04:34,200
it again.

76
00:04:34,230 --> 00:04:38,240
So that is our form and the form area with our this user.

77
00:04:39,750 --> 00:04:42,420
We thought this user creation form here.

78
00:04:42,420 --> 00:04:46,880
I want to want to pass all the data, all the data we get from our post.

79
00:04:46,890 --> 00:04:49,860
So I just simply pass it with the request.

80
00:04:50,760 --> 00:04:53,060
So that means our distinguished data.

81
00:04:53,670 --> 00:04:54,990
OK, I just simply passed it.

82
00:04:55,290 --> 00:04:59,790
And here, first of all, I want to do want to actually take our distinguished data with the.

83
00:04:59,990 --> 00:05:06,260
The variable so here I name it as a data and I just take that our requested all the post and I just

84
00:05:06,260 --> 00:05:07,710
take it with this variable.

85
00:05:07,760 --> 00:05:09,790
OK, that is our DNA variable.

86
00:05:10,010 --> 00:05:12,940
And after that, I want to do I want to make as a validation.

87
00:05:12,950 --> 00:05:18,710
So here I put out the if condition, if our form, if our form is valid or not.

88
00:05:18,740 --> 00:05:22,340
So I just simply added as the ease underscore valid.

89
00:05:23,450 --> 00:05:24,860
So here I want to check it.

90
00:05:24,870 --> 00:05:26,960
That means this form that is valid or not.

91
00:05:26,990 --> 00:05:31,570
So if it's valid, then I want to do want to save our D from all the data.

92
00:05:31,970 --> 00:05:38,070
That means our form, that is our form and I on the line to save this data.

93
00:05:38,090 --> 00:05:39,560
So I just simply save it.

94
00:05:39,800 --> 00:05:45,950
And when this data will be saved, first of all, here I make our registered as a false and No one to

95
00:05:45,950 --> 00:05:47,890
do and to make that as a true.

96
00:05:48,230 --> 00:05:50,270
OK, that means here I want to do.

97
00:05:50,270 --> 00:05:53,420
I know when this data will be safe here.

98
00:05:53,420 --> 00:05:54,700
I make that as a true.

99
00:05:55,670 --> 00:05:57,230
So then it will be as true.

100
00:05:57,380 --> 00:06:01,850
So right now we have to do we have to pass all this information that means the register information

101
00:06:01,850 --> 00:06:02,830
to the base.

102
00:06:03,290 --> 00:06:10,880
So here, here I want to do and written and written and with the render that means our with our descender

103
00:06:10,880 --> 00:06:11,410
method.

104
00:06:12,320 --> 00:06:17,370
So with our descender method, I want to do I want to pass our first of all, it will be passed.

105
00:06:17,390 --> 00:06:20,450
That request, as it will do, is pass through this parameter.

106
00:06:20,720 --> 00:06:25,040
One is at the request, one is the request, and that is the final location.

107
00:06:25,070 --> 00:06:31,570
So now in our app login, that means into the app logging area, I would want to create one of the file

108
00:06:31,610 --> 00:06:32,630
that bizarre our form.

109
00:06:32,630 --> 00:06:33,300
What exactly?

110
00:06:33,320 --> 00:06:34,540
I want to put our form.

111
00:06:34,580 --> 00:06:38,770
So I just name it as a sign up DOT estimates.

112
00:06:38,780 --> 00:06:43,330
So this step up on the pace I just simply created in our app logging.

113
00:06:43,340 --> 00:06:44,920
So here I don't want to load it.

114
00:06:45,350 --> 00:06:53,690
So that is in our app logging app sorry app underscore logging app logging.

115
00:06:53,690 --> 00:06:55,550
So from to the app logging.

116
00:06:55,550 --> 00:07:00,680
I want to get out this sign a form that is HTML.

117
00:07:01,000 --> 00:07:02,700
OK, so I just simply load it.

118
00:07:02,990 --> 00:07:05,090
So now we have to do, we have to pass out this.

119
00:07:05,110 --> 00:07:11,320
So that means when this, our history is complete, when our form is valid it is perfectly OK.

120
00:07:11,330 --> 00:07:13,930
And then I want to save this our form data.

121
00:07:14,180 --> 00:07:15,860
That means our industry is complete.

122
00:07:15,860 --> 00:07:16,130
Right.

123
00:07:16,430 --> 00:07:19,580
So after that, this information we have to do, we have to pass it.

124
00:07:19,580 --> 00:07:22,200
We have to pass it in our context area.

125
00:07:22,220 --> 00:07:23,590
So if you want to pass it.

126
00:07:23,930 --> 00:07:27,440
So here, here I want to take one of the variable.

127
00:07:27,440 --> 00:07:31,370
I just take that variable as a decision or whatever you want.

128
00:07:31,400 --> 00:07:36,410
So now I just name all the variable as a dictionary and written with the dictionary.

129
00:07:36,410 --> 00:07:38,190
We have to pass that information.

130
00:07:38,240 --> 00:07:38,560
Right.

131
00:07:38,570 --> 00:07:42,460
So here we have to do we have to take one of the key.

132
00:07:42,470 --> 00:07:44,170
Our key will be our form.

133
00:07:44,690 --> 00:07:48,140
I name it as a form and then that will be as a form.

134
00:07:49,310 --> 00:07:50,860
So I just simply pass it.

135
00:07:51,050 --> 00:07:55,570
And also here we have to do we have to pass out this information that is registered.

136
00:07:56,030 --> 00:07:57,800
So that will be our key.

137
00:07:57,800 --> 00:07:59,350
I just name it as a register.

138
00:07:59,360 --> 00:08:03,650
And here I also want to make that the register so no one to enter the password.

139
00:08:03,650 --> 00:08:08,420
This data that means this dictionary that are, you know, this base that we see in our sign of protest.

140
00:08:08,420 --> 00:08:14,900
Tamalpais so if you want to pass it so here and pass it with all the context, I take one of the variable

141
00:08:14,900 --> 00:08:15,770
as the context.

142
00:08:16,460 --> 00:08:23,030
OK, with this context here, I just simply posit that means from here I pass or form right from here.

143
00:08:23,030 --> 00:08:28,100
I have already loaded out this form as a user creation form and then take the things with this variable.

144
00:08:28,310 --> 00:08:34,130
And also here I pass it that mhere here I pass our on of the form and also I pass that register.

145
00:08:34,250 --> 00:08:34,600
Right.

146
00:08:34,610 --> 00:08:39,680
So I pass that data that the addition that I know I sign about is Tamalpais.

147
00:08:39,680 --> 00:08:41,440
So now we can actually use both of these.

148
00:08:41,450 --> 00:08:43,030
So it's to post about Shoyu.

149
00:08:43,280 --> 00:08:45,970
So now I want to go on to working or sign up at this table.

150
00:08:46,010 --> 00:08:46,690
That means here.

151
00:08:47,060 --> 00:08:50,120
So here first of all, I want to do want to load our business.

152
00:08:50,120 --> 00:08:55,940
Jammal, that means if we go to our blog list and negotiate the block list area extended our base estimate,

153
00:08:56,000 --> 00:08:59,260
it'll be just like that same letter I copied.

154
00:08:59,630 --> 00:09:05,210
And now, you know, sign a portion here I it so shall we extend our basis to email.

155
00:09:05,210 --> 00:09:09,890
And also that will be a sign on the block title and this block title for this.

156
00:09:09,890 --> 00:09:14,300
It shall be as a create create new account

157
00:09:17,150 --> 00:09:17,990
as account.

158
00:09:17,990 --> 00:09:22,880
So that will be our title and that is our and title and that is our body blog.

159
00:09:22,880 --> 00:09:26,080
And in the body blog it Yadav that's on the H1 text submittal.

160
00:09:26,120 --> 00:09:30,860
I want to make as I create create new account.

161
00:09:31,730 --> 00:09:36,960
OK, this will be displayed as a create new account and I want to make that things as a text.

162
00:09:36,960 --> 00:09:37,910
Then it should be better.

163
00:09:38,480 --> 00:09:42,370
I make a list to protect and here I want to do to load one of the forms.

164
00:09:42,460 --> 00:09:45,200
So that is one of the original form I want to load.

165
00:09:45,200 --> 00:09:47,390
And here we don't need any class.

166
00:09:47,900 --> 00:09:52,810
So I just simply removed that class and then that is our action.

167
00:09:52,820 --> 00:09:57,710
Also here, we don't need to add any action automatically to reject it.

168
00:09:57,710 --> 00:09:59,030
And that is our post method.

169
00:09:59,030 --> 00:09:59,270
Right.

170
00:09:59,760 --> 00:10:06,030
So from here, that post my thoughts, so here I first of all, I take Jackett without this matter is

171
00:10:06,030 --> 00:10:12,760
posted a not so for now that I just simply added as our format will be as a post.

172
00:10:13,230 --> 00:10:17,760
So now here in particular, this form area, I want to download our form.

173
00:10:17,770 --> 00:10:20,700
That means our default, our class form.

174
00:10:20,700 --> 00:10:22,370
That is our user creation form.

175
00:10:22,590 --> 00:10:28,380
And here I take the things with this variable here I pass it in our dictionary area and with this I

176
00:10:28,380 --> 00:10:31,130
just simply pass it in or sign up as Tamalpais.

177
00:10:31,290 --> 00:10:31,630
Right.

178
00:10:31,920 --> 00:10:33,340
So now that is a flawed form.

179
00:10:33,840 --> 00:10:39,760
So now in particular this for I just simply load our default Django form in here.

180
00:10:39,780 --> 00:10:41,240
That is far from perfect.

181
00:10:41,250 --> 00:10:45,160
And also after that, I want to do bad on the bottom.

182
00:10:45,480 --> 00:10:49,790
So that will be as a button bottom type will be at the submitter.

183
00:10:51,120 --> 00:10:52,930
So it will be at the submit time.

184
00:10:52,950 --> 00:10:55,200
And here we don't need any name.

185
00:10:55,380 --> 00:10:57,420
I want to do a report on the class.

186
00:10:58,260 --> 00:11:05,160
I want to put on the class as a witty and witty and that is one of the bootstrap plus success I could

187
00:11:05,160 --> 00:11:07,940
be in between success and median s.m.

188
00:11:08,340 --> 00:11:10,130
OK, just name it as the same.

189
00:11:10,140 --> 00:11:11,340
That is small size.

190
00:11:11,850 --> 00:11:13,680
So that will be our bottom type.

191
00:11:13,800 --> 00:11:14,280
Perfect.

192
00:11:14,280 --> 00:11:16,770
And our bottom name will be as a create account.

193
00:11:17,910 --> 00:11:19,590
So create account.

194
00:11:20,460 --> 00:11:25,760
So it will be as a create account and also that this will be our sign up right to the sign up.

195
00:11:25,920 --> 00:11:28,740
I also want to add another link for our lodging.

196
00:11:28,740 --> 00:11:32,670
So if you want to do that work, you can do it so often in this section.

197
00:11:32,670 --> 00:11:34,020
I don't want to actually.

198
00:11:34,030 --> 00:11:36,600
I'm focused on creating some of the design.

199
00:11:36,610 --> 00:11:37,650
So many more things.

200
00:11:37,650 --> 00:11:39,350
I want to discuss that things with you.

201
00:11:39,360 --> 00:11:41,370
OK, so into the beer area.

202
00:11:41,370 --> 00:11:47,730
I take one the paragraph and here already have an account.

203
00:11:48,480 --> 00:11:52,030
So if you already have an account then you can logging's.

204
00:11:52,030 --> 00:11:59,360
So this step up, one of the link I want to put it should be the logging here, OK, logging here.

205
00:11:59,370 --> 00:12:04,230
So in particular, that position we have to do have to put that our logging you out.

206
00:12:04,680 --> 00:12:10,440
And also from here I pass another parameter variable that is our registered.

207
00:12:10,440 --> 00:12:10,730
Right.

208
00:12:10,740 --> 00:12:15,700
That means, first of all, that is our registered as a false and then I pass that as it is said, that

209
00:12:15,720 --> 00:12:17,820
is when this account is created.

210
00:12:18,090 --> 00:12:20,880
After that, our decisions that will be added to.

211
00:12:20,880 --> 00:12:21,180
Right.

212
00:12:21,390 --> 00:12:23,480
And also here I pass it.

213
00:12:23,890 --> 00:12:29,880
So I wanted to put this tape up on the condition when our submit form will be completed that we saw

214
00:12:29,880 --> 00:12:36,150
in this user will create this account automatically, which will be sure of that, a large success message.

215
00:12:36,510 --> 00:12:39,300
So if you want to do that work, you can do it very easily.

216
00:12:39,750 --> 00:12:43,230
So for doing this, that is our end blog.

217
00:12:43,680 --> 00:12:45,600
And here there is our body block.

218
00:12:45,600 --> 00:12:46,010
Right?

219
00:12:46,020 --> 00:12:47,760
So the body block area.

220
00:12:47,940 --> 00:12:50,850
So here I want to put on the if condition.

221
00:12:51,360 --> 00:13:00,210
I just simply put that if if our that means from here I pass it that the register that receive this

222
00:13:00,210 --> 00:13:01,930
user is already registered.

223
00:13:02,340 --> 00:13:08,840
OK, so if this user is already registered, then it shall be displayed some message.

224
00:13:08,850 --> 00:13:13,650
So I just take one of the dev and I just thought that this class will be on the bootstrap class of the

225
00:13:13,700 --> 00:13:17,220
alert alert, a large success.

226
00:13:18,060 --> 00:13:22,620
So this step up, one of the class I want to display and here it will be displayed as I count.

227
00:13:24,060 --> 00:13:28,200
OK, account created, created successfully.

228
00:13:30,510 --> 00:13:33,180
So the step up on the message will be displayed.

229
00:13:33,180 --> 00:13:39,120
And also here I put on the is better for the logging logging here.

230
00:13:40,080 --> 00:13:47,930
So this step up on the success master will be displayed and else that means here I just put that another

231
00:13:47,970 --> 00:13:48,600
else.

232
00:13:51,840 --> 00:13:55,410
OK, else it shall be displayed out this another portion.

233
00:13:55,410 --> 00:13:57,780
That means it shall be displayed out this form.

234
00:13:57,790 --> 00:14:03,660
OK, so Elsas will be displayed this from that means when you want to create that use, if this user

235
00:14:03,660 --> 00:14:06,380
is not created then it should be display our form again.

236
00:14:06,390 --> 00:14:07,980
That is our default from again.

237
00:14:07,980 --> 00:14:12,720
Right then it will be displayed out this message and everything ls and after that here also you have

238
00:14:12,720 --> 00:14:21,090
to do we have to end it that this we have to and our if condition either simply and this is a condition

239
00:14:21,870 --> 00:14:25,140
of a friend, I hope everything is very much clear to you.

240
00:14:25,150 --> 00:14:26,730
So that is our form.

241
00:14:27,180 --> 00:14:30,420
So that is our usurpation form and I pass it.

242
00:14:30,420 --> 00:14:35,970
And also the result is that our data that if this user is registered and instead we display our this

243
00:14:35,970 --> 00:14:39,600
message rather than it should we display our this form perfect.

244
00:14:40,110 --> 00:14:45,540
So for now, if we want to access it, that means if you want to access our design, abductor's Tamalpais

245
00:14:45,540 --> 00:14:46,410
for access it.

246
00:14:46,410 --> 00:14:48,060
We have to we have to create one of the.

247
00:14:48,060 --> 00:14:48,930
You are right.

248
00:14:49,260 --> 00:14:53,400
So here we have to create one of the other tools for access our design space.

249
00:14:53,850 --> 00:14:58,860
So how can do that work better and to continue this process in our next video, I will show you that

250
00:14:58,860 --> 00:14:59,430
things with the.

251
00:14:59,660 --> 00:15:04,280
For example, so thanks for watching, I will see you in the next video.
