1
00:00:00,150 --> 00:00:01,740
Hello, friend, welcome back.

2
00:00:02,010 --> 00:00:07,770
In a previous video, we have successfully created one of the profile based right and also here to display

3
00:00:07,770 --> 00:00:10,950
our user name, email and your full name.

4
00:00:11,400 --> 00:00:14,570
So that's all that our default, all that feel.

5
00:00:14,580 --> 00:00:20,430
That means you are our user or all that feel to know how to do want to add another form for our user

6
00:00:20,700 --> 00:00:21,390
changed form.

7
00:00:21,390 --> 00:00:28,170
So as I told you, if you go to the documentation and they have all sort of the form that is our user

8
00:00:28,170 --> 00:00:28,890
changed from.

9
00:00:29,250 --> 00:00:32,640
So how can working with this user changed from in this video?

10
00:00:32,640 --> 00:00:35,010
I will show that things with a live example.

11
00:00:35,520 --> 00:00:39,540
So for doing this, first of all, in our social media, I want to add it.

12
00:00:39,670 --> 00:00:44,520
That means I have already created one of the custom form in our app logging, and that is our custom

13
00:00:44,520 --> 00:00:44,880
form.

14
00:00:44,880 --> 00:00:45,210
Right.

15
00:00:45,590 --> 00:00:48,620
Since the custom form area, I want to do want to update it.

16
00:00:49,020 --> 00:00:52,260
So first of all, here we have to do we have to load it.

17
00:00:52,260 --> 00:00:57,030
We have to import our D plus that is our user change form.

18
00:00:57,030 --> 00:00:59,260
Plus I just have a copy.

19
00:00:59,310 --> 00:01:02,760
And here after this I first of all I load it.

20
00:01:02,980 --> 00:01:09,870
OK, so that is our user transform and then I want to do and to create another class and to create another

21
00:01:09,870 --> 00:01:11,540
class for the change profile.

22
00:01:12,750 --> 00:01:18,200
So I name it as a user profile change.

23
00:01:18,840 --> 00:01:24,330
So whatever he wants right now, I name it as the user profile change and in particular the experimental

24
00:01:24,330 --> 00:01:25,110
area we have to do.

25
00:01:25,110 --> 00:01:29,400
We have to pass our this class as user changed from class.

26
00:01:29,400 --> 00:01:31,470
I just simply passell OK.

27
00:01:31,620 --> 00:01:37,080
And after that I want to do to create another class that will be as a middle class.

28
00:01:37,080 --> 00:01:37,400
Right.

29
00:01:37,890 --> 00:01:39,750
So I name it as a matter.

30
00:01:39,750 --> 00:01:41,310
And the middle class area.

31
00:01:41,310 --> 00:01:47,550
First of all, I want to load our model and the model that because I want to load our user model that

32
00:01:47,550 --> 00:01:53,550
is our user and really user area, I don't want to add all the other fields which field you want to

33
00:01:53,550 --> 00:01:54,390
update that in.

34
00:01:54,390 --> 00:01:55,720
So you really want to change.

35
00:01:55,730 --> 00:02:03,270
So I had all the other fields, so our fields I want to do I want to add our user name.

36
00:02:04,260 --> 00:02:05,310
That means user name.

37
00:02:05,310 --> 00:02:06,360
I want to change.

38
00:02:06,360 --> 00:02:08,240
I want to change that email.

39
00:02:08,880 --> 00:02:16,940
That is another one email I want to change and also I want to add another or all that field.

40
00:02:16,950 --> 00:02:23,580
So as I told you in the user, if you go to a user model area here, they have some of the field as

41
00:02:23,580 --> 00:02:26,940
username, password, email, fast name and the last name.

42
00:02:27,000 --> 00:02:29,790
So now I want to do I want to take this as a first name.

43
00:02:30,450 --> 00:02:37,230
I want to check that our first name, that they are first name feel and then the another one and another

44
00:02:37,230 --> 00:02:39,150
one will be as a last name.

45
00:02:40,080 --> 00:02:44,520
So I added as a last name and then our password.

46
00:02:45,060 --> 00:02:48,390
So I added another one that will be our filename.

47
00:02:48,390 --> 00:02:50,520
Our filename will be as a password.

48
00:02:50,670 --> 00:02:51,020
Right.

49
00:02:51,480 --> 00:02:57,090
So no I added our username, email, first name, last name and password.

50
00:02:57,360 --> 00:03:00,760
So now we have to do we have to create one of the functions.

51
00:03:00,760 --> 00:03:00,980
Right.

52
00:03:00,990 --> 00:03:04,590
We have to create one of the function for our this user change.

53
00:03:04,950 --> 00:03:06,990
So that is in our app logging.

54
00:03:06,990 --> 00:03:15,030
And if you go to that view so after that, after the I to do and to create another function and I just

55
00:03:15,030 --> 00:03:20,150
name it as ID Dave and I named that function of the user underscore change.

56
00:03:21,150 --> 00:03:22,860
So that will be our function name.

57
00:03:23,100 --> 00:03:27,510
And also if you want to access this function, this user must have to log in.

58
00:03:27,540 --> 00:03:34,110
So for the reasons I added, as a logging is secured and then our function name as it user changed and

59
00:03:34,110 --> 00:03:36,270
here we have to we have to pass that request.

60
00:03:36,390 --> 00:03:36,750
Right.

61
00:03:37,080 --> 00:03:39,620
And also here I want to do want to load on the form.

62
00:03:39,630 --> 00:03:43,320
So for the resource here, we have to do the same things that we did before.

63
00:03:43,620 --> 00:03:49,980
But here this change that between saw in this user wants to change this profile that already this user

64
00:03:49,980 --> 00:03:50,970
is looking right.

65
00:03:51,300 --> 00:03:55,220
So here we have to do we have to get our this current user user.

66
00:03:55,650 --> 00:03:59,580
So if you want to get that current user, better take one of the variable.

67
00:03:59,580 --> 00:04:06,330
I name it as a current like a current underscore user and this current user means or decreased.

68
00:04:06,330 --> 00:04:11,130
So that is our request with this request, which user is already logging that?

69
00:04:11,170 --> 00:04:15,540
That means our current user, I take it, without this variable as a current user.

70
00:04:15,960 --> 00:04:17,820
So no end to want to load our form.

71
00:04:18,300 --> 00:04:25,240
That means from and from I have already created the custom class, so that means in our form area.

72
00:04:25,260 --> 00:04:27,090
So that is our user profile change.

73
00:04:27,090 --> 00:04:27,420
Right.

74
00:04:27,420 --> 00:04:30,060
So there is a class we have to, first of all, input it.

75
00:04:30,600 --> 00:04:33,630
So I don't actually access it.

76
00:04:33,630 --> 00:04:36,600
That means if you want to access it, first of all, you have to load it.

77
00:04:37,200 --> 00:04:43,110
Let me see now from I have already loaded our sign up, so I want to do and add another one that will

78
00:04:43,110 --> 00:04:44,850
be our user profile change.

79
00:04:45,000 --> 00:04:47,700
That friend, I hope is very much clear to you.

80
00:04:48,090 --> 00:04:55,110
So now with this hour, this class, with this class, I have already loaded our all that feels.

81
00:04:55,110 --> 00:04:57,780
That means you should be loaded onto the field as a user.

82
00:04:57,780 --> 00:04:59,670
Name the email first name.

83
00:04:59,800 --> 00:05:01,610
Last name and the password, right?

84
00:05:02,050 --> 00:05:05,090
So when I moved on it, then everything will be more clear to you.

85
00:05:05,590 --> 00:05:10,400
So now with this form, that will be our user profile change.

86
00:05:10,480 --> 00:05:12,410
That is our custom of the form.

87
00:05:12,430 --> 00:05:15,930
And now I want to do here a little bit faster here.

88
00:05:15,940 --> 00:05:22,480
So we pass our instant current user data because of, all right, now I'm already locked in and this

89
00:05:22,480 --> 00:05:25,000
user already has some of the user name.

90
00:05:25,000 --> 00:05:25,360
Right.

91
00:05:25,360 --> 00:05:27,600
This user has already sent the user name.

92
00:05:27,610 --> 00:05:30,300
It may also have some of the email address.

93
00:05:30,580 --> 00:05:34,750
So for the reasons here, we have to do we have to add that instance.

94
00:05:34,750 --> 00:05:36,950
So I name it as an instance.

95
00:05:36,970 --> 00:05:41,920
So here I name it as a instance, instant and instant.

96
00:05:41,920 --> 00:05:46,840
What instant that means our district is that that means which user is already logged in.

97
00:05:46,840 --> 00:05:53,080
So this user request user, I take the things with this variable and here and simply pass it.

98
00:05:53,600 --> 00:06:00,050
That means our into the formula which user is already looking and this user have some of the instant

99
00:06:00,070 --> 00:06:00,480
data.

100
00:06:00,490 --> 00:06:03,000
So I just simply take it OK.

101
00:06:03,250 --> 00:06:05,970
And after that I want to do and put our if condition.

102
00:06:06,490 --> 00:06:13,210
That means if our request method they shall be just like the same before actually method.

103
00:06:13,930 --> 00:06:15,930
So this will be the request map authority.

104
00:06:15,940 --> 00:06:19,370
First of all, it will be a check that is post methode or not.

105
00:06:19,840 --> 00:06:28,930
So with this post methode and then we have to add again our form and our form and then our this form

106
00:06:28,930 --> 00:06:33,970
will be our user profile changes right first and then here we have to parse that.

107
00:06:33,970 --> 00:06:37,380
Our request, that means the request, our post.

108
00:06:38,620 --> 00:06:40,450
So I just simply pass it.

109
00:06:40,450 --> 00:06:44,650
And also from here we have to do we have to pass our instant user data.

110
00:06:44,650 --> 00:06:45,670
That means which user?

111
00:06:45,910 --> 00:06:50,110
This user already has all the data for the reasons here, we have to pass it.

112
00:06:50,470 --> 00:06:50,790
Right.

113
00:06:51,040 --> 00:06:53,350
And after that, I want to take that user.

114
00:06:53,350 --> 00:06:55,710
Is that in this form is valid or not?

115
00:06:56,080 --> 00:07:04,840
So I put as if our form, our form is underscore valid, if it's valid or not.

116
00:07:04,870 --> 00:07:08,530
So I want to check it is to be just like the same.

117
00:07:08,530 --> 00:07:09,460
If it's valid.

118
00:07:09,460 --> 00:07:11,370
I want to save our this form.

119
00:07:11,890 --> 00:07:14,230
I just simply said this form.

120
00:07:14,530 --> 00:07:14,920
Right.

121
00:07:15,190 --> 00:07:22,810
And after that, also here we have to do the if condition here and return a return on the render so

122
00:07:22,810 --> 00:07:28,820
redundant it will be passed two of this parameter, one will be at the request and then our file.

123
00:07:29,230 --> 00:07:35,860
So in our app logging into the app logging, I want to create one of the base that is in our app logging

124
00:07:35,860 --> 00:07:36,160
here.

125
00:07:36,160 --> 00:07:45,080
I want to create one of the file and I name it as a change profile change and a score profile, not

126
00:07:45,100 --> 00:07:45,790
SDMI.

127
00:07:46,570 --> 00:07:48,340
So that will be on the base.

128
00:07:48,340 --> 00:07:49,450
I copy it.

129
00:07:50,320 --> 00:07:56,410
So I have created the change profile, so I want to do and download it on here, you know, app logging.

130
00:07:56,410 --> 00:08:02,320
I have created one of the page as a change profile of this HTML and also the result from I will have

131
00:08:02,320 --> 00:08:07,990
to do I have to load our this user profile changes and take the things with this variable as a form.

132
00:08:08,000 --> 00:08:11,670
So now we have to parse this form in our change profile or this stable pace.

133
00:08:12,000 --> 00:08:14,870
So if in the past we have to proceed with that decision.

134
00:08:15,340 --> 00:08:20,590
So just name it with the context and then add that the addiction into the dictionary.

135
00:08:20,680 --> 00:08:23,830
I want to do all the parser, key or key is the form.

136
00:08:23,830 --> 00:08:26,620
Sorry, our key will be our form.

137
00:08:27,110 --> 00:08:31,600
So I simply pass our form right friend.

138
00:08:31,660 --> 00:08:35,710
So now we can actually access our form in our Jane's profile of this.

139
00:08:36,610 --> 00:08:38,910
That means that is our chance profile as HTML.

140
00:08:39,520 --> 00:08:43,980
So I hope is very much clear to friend and also after that saved.

141
00:08:44,020 --> 00:08:49,690
That means here when this user will change everything, when this user will change that profile.

142
00:08:49,690 --> 00:08:50,260
Updated.

143
00:08:50,530 --> 00:08:53,590
Then also we have to update our new data.

144
00:08:53,590 --> 00:08:53,930
Right.

145
00:08:53,950 --> 00:08:55,390
We have to update our new data.

146
00:08:55,390 --> 00:09:01,030
And it should be said in our D user area, like right now, they have the I have already added one of

147
00:09:01,030 --> 00:09:02,350
their user name as a test.

148
00:09:02,350 --> 00:09:05,920
So if you want to change it, then you should be at the test one.

149
00:09:06,250 --> 00:09:09,280
So here also you have to save this current user data.

150
00:09:09,280 --> 00:09:15,310
So for the results after that save software that save here, we have to do we have to add that our form

151
00:09:16,000 --> 00:09:17,620
our into the form area.

152
00:09:17,620 --> 00:09:20,500
I want to update it in our profile.

153
00:09:20,500 --> 00:09:23,350
That means into the user profile area here.

154
00:09:23,350 --> 00:09:27,190
We have to update it, you know, this instant current user.

155
00:09:27,250 --> 00:09:31,360
OK, so that means our new current user data will be updated.

156
00:09:31,960 --> 00:09:36,520
So here, make sure you added and then I pass our form.

157
00:09:36,520 --> 00:09:42,250
I just simply parsed that form in our context area and now we can actually access it in our change profile.

158
00:09:42,250 --> 00:09:44,050
Not as Tamalpais that means here.

159
00:09:44,680 --> 00:09:50,340
So this will be just like our home base, just like our logi.

160
00:09:50,380 --> 00:09:52,060
OK, I just simply copied it.

161
00:09:52,690 --> 00:09:58,840
And now here at Penn State, schools will be extended our basis HTML and also here I load one of the

162
00:09:58,840 --> 00:09:59,520
forms for the.

163
00:09:59,880 --> 00:10:09,700
I load that crispy farms and the tags and then are blocked, that will be the chains chains profile.

164
00:10:10,920 --> 00:10:18,980
OK, we so the a profile sylvere the chains overlapping that user profile like a chance to use a profile

165
00:10:18,990 --> 00:10:20,760
and then our body blog.

166
00:10:21,270 --> 00:10:36,120
So will as our you can name it as a profile that user profile update or change the step up of the text

167
00:10:36,120 --> 00:10:40,500
is to be visible and then that will be on the form.

168
00:10:40,500 --> 00:10:46,640
It will be as a map to be post and also from our view, from the view like that form.

169
00:10:46,950 --> 00:10:51,870
So now we have to do we have to use it so that they are formally loaded and also loaded that crispy.

170
00:10:52,170 --> 00:11:00,780
And then there is a set token and then there is a button and button name will be as a change, I name

171
00:11:00,780 --> 00:11:05,460
it as a button name will be the change and and form and then and block.

172
00:11:05,850 --> 00:11:06,440
Perfect.

173
00:11:06,780 --> 00:11:08,850
So now for I want this change profile.

174
00:11:08,850 --> 00:11:13,200
I want to do want to create one of the you whatever that means in our app logging.

175
00:11:13,200 --> 00:11:20,850
And that is what you are here to do to create one of the liberal antipasti, to still be as a change,

176
00:11:20,850 --> 00:11:24,120
profile, change and profile.

177
00:11:25,230 --> 00:11:29,910
And then in our view, I have created one of the into the view.

178
00:11:29,910 --> 00:11:32,630
I have created that function name as a user changed.

179
00:11:33,120 --> 00:11:39,930
So now I just simply add our view user change and then just name it as the user change or different

180
00:11:40,050 --> 00:11:40,480
friends.

181
00:11:40,480 --> 00:11:42,890
And now I want to do I want to create one of the button.

182
00:11:42,900 --> 00:11:48,930
So in our profile pages here after this, I want to create of the button for the change profile, then

183
00:11:48,930 --> 00:11:51,290
our DNA profile form will be loaded.

184
00:11:51,300 --> 00:11:54,030
So for doing this, that is in our profile.

185
00:11:54,030 --> 00:11:57,870
And there is a profile if you go to that, our view.

186
00:11:58,110 --> 00:12:02,470
So into the profile I uploaded our app logging and profiler's to.

187
00:12:03,330 --> 00:12:05,910
So that is our profile estimates after this here.

188
00:12:05,910 --> 00:12:12,570
I want to do undertake one of the bracket first and after that bracket I take one of the areas and I

189
00:12:12,570 --> 00:12:14,480
name it as a chance.

190
00:12:15,300 --> 00:12:17,520
OK, so it will be the James.

191
00:12:19,490 --> 00:12:25,750
Jane's profile in full, so they step up one of the button, it will be visible.

192
00:12:25,800 --> 00:12:29,260
OK, so used to be a misplay as a paint profile info.

193
00:12:29,270 --> 00:12:38,840
And also if you want to put that on the glass left in the bottom glass as a meeting between 9:00 a.m.

194
00:12:38,840 --> 00:12:44,900
this morning, between between morning and between that and the small size.

195
00:12:45,260 --> 00:12:49,490
And also I have all indicated on the road that I have already crossed the path.

196
00:12:49,490 --> 00:12:51,400
So if you want to use it, you can use it.

197
00:12:51,860 --> 00:12:59,170
So here you have to make that with that you are well, that means you are ill and you are Delirio.

198
00:12:59,180 --> 00:13:03,830
If you go to our Wartell, that will be our apt name as a blogging.

199
00:13:04,010 --> 00:13:04,440
Right.

200
00:13:04,460 --> 00:13:11,470
So I just added as a blogging and then our equal part of the user changed.

201
00:13:11,960 --> 00:13:13,310
So I just simply copy.

202
00:13:13,310 --> 00:13:22,580
And now in our profile here after this, I name it as a user change and I hope is very much clear to

203
00:13:22,580 --> 00:13:22,800
you.

204
00:13:23,180 --> 00:13:24,410
So now let's check this out.

205
00:13:24,410 --> 00:13:29,960
If you click on the Save All, I click here to save all Fosterville on the check server.

206
00:13:32,500 --> 00:13:38,640
Yeah, you can see snow perfectly running and now I want to do I want to refresh our profile piece.

207
00:13:38,740 --> 00:13:42,420
Yeah, you can see there is a clear pattern as a change profile in photo.

208
00:13:42,430 --> 00:13:45,640
If you click on the change profile info, yes.

209
00:13:45,640 --> 00:13:52,200
You can see friend know perfectly redacted to our change profile page and the change profile page area.

210
00:13:52,210 --> 00:13:56,680
I have loaded one of the custom field that is are all that field because that is a user name.

211
00:13:57,010 --> 00:13:58,150
That is the email.

212
00:13:58,150 --> 00:14:01,210
That is our first name, last name and the password.

213
00:14:01,240 --> 00:14:08,620
So now if you want to update your email address, as I name it, as a test at Gmail dot com and I put

214
00:14:08,620 --> 00:14:14,710
as a Kassie and then last name as Arion and then that is a password.

215
00:14:14,710 --> 00:14:14,960
Right.

216
00:14:15,190 --> 00:14:19,870
So now I want to do I want to change that because I want to update our email address, first name,

217
00:14:19,870 --> 00:14:22,450
last name and the password click the change.

218
00:14:23,450 --> 00:14:29,550
Yes, you can see so perfectly updated and if you go to our profile, yes, you can see now it's visible.

219
00:14:29,570 --> 00:14:36,920
Our email address and also visible our first name and the last name, I hope is very much clear to your

220
00:14:36,920 --> 00:14:37,340
friend.

221
00:14:37,430 --> 00:14:42,350
And also, if you go to our Jane's profile into the change profile, there is our password.

222
00:14:42,350 --> 00:14:42,610
Right.

223
00:14:42,710 --> 00:14:47,400
If you want to update that password for the password, they have the three different classes.

224
00:14:47,450 --> 00:14:49,460
How can update this password?

225
00:14:49,460 --> 00:14:52,900
In our next video, I will show you that things with a live example.

226
00:14:53,360 --> 00:14:56,630
So thanks for watching and I'll see you in the next video.
