1
00:00:00,300 --> 00:00:01,950
Hello, friend, welcome back.

2
00:00:02,280 --> 00:00:07,860
In a previous video, we successfully created one of the base for the change this hour before Dimmeys

3
00:00:07,860 --> 00:00:12,620
and here, if you can here, they need to be addicted to our change profiles, MySpace.

4
00:00:12,840 --> 00:00:16,040
And here I also added that choosing options.

5
00:00:16,040 --> 00:00:21,040
So right now I want to do from here, I want to update our default profile image.

6
00:00:21,420 --> 00:00:24,390
That means if you go to our profiles, for that is our default profile.

7
00:00:24,660 --> 00:00:24,910
Right.

8
00:00:24,990 --> 00:00:27,060
So now I want to do I want to update it.

9
00:00:27,060 --> 00:00:31,910
So for doing this, we have to do we have to work in our this function.

10
00:00:31,920 --> 00:00:33,990
That means our Adepero function here.

11
00:00:33,990 --> 00:00:39,320
I return our day and our app login and profile picture address HTML.

12
00:00:39,720 --> 00:00:42,020
So that is our picture at the table.

13
00:00:42,090 --> 00:00:43,260
So that is our form.

14
00:00:43,290 --> 00:00:45,690
So right now we have to do we have to work on here.

15
00:00:45,960 --> 00:00:51,610
And also added as a and Citigroup because of all from here, I want to update the images.

16
00:00:51,960 --> 00:00:55,250
So now let's do that work for doing this right now.

17
00:00:55,620 --> 00:00:57,680
Better I just put that things on here.

18
00:00:57,960 --> 00:01:03,290
And first of all, after this, I have to do the same condition that we did before from here.

19
00:01:03,300 --> 00:01:07,800
That is actually our I passed some of the pull stripe that this our method will be as a post.

20
00:01:08,220 --> 00:01:09,880
So now after that profile.

21
00:01:10,290 --> 00:01:15,270
So here I want to do a first of all, add one of the if condition I make.

22
00:01:15,270 --> 00:01:19,470
That is one of the if condition, if our D.

23
00:01:19,470 --> 00:01:22,140
Seacrest request and then the method.

24
00:01:23,280 --> 00:01:23,550
Right.

25
00:01:23,610 --> 00:01:26,250
Then our method will still be girly girl.

26
00:01:26,250 --> 00:01:27,930
First of all, I have to do have to check it.

27
00:01:27,930 --> 00:01:29,280
That is a post or not.

28
00:01:29,400 --> 00:01:35,340
So first of all, I take it and then I take one of the variable as a form and here I have to do I have

29
00:01:35,340 --> 00:01:38,750
to pass out this class that meets our profile picture class.

30
00:01:38,760 --> 00:01:41,780
And here we have to do we have to pass that our request post.

31
00:01:42,330 --> 00:01:43,830
So that will be our request.

32
00:01:43,830 --> 00:01:50,010
And then post we have to pass and also make sure here we have to also pass our request files because

33
00:01:50,010 --> 00:01:50,460
of all.

34
00:01:50,460 --> 00:01:56,310
If you go here, I ordered our that position as a Nazi type, as a multiplatform laterite.

35
00:01:56,580 --> 00:02:02,460
So when you actually pass on the images, then also here we have to do we have to pass another one.

36
00:02:02,760 --> 00:02:04,290
We have to pass that request.

37
00:02:04,290 --> 00:02:06,570
We have to pass that request with our files.

38
00:02:08,750 --> 00:02:13,200
So make sure you add that our request also will be at the fine, right?

39
00:02:13,220 --> 00:02:19,460
And then I would want to put out again and the if condition that I want to validate our form so our

40
00:02:19,460 --> 00:02:22,640
form and ease underscore valid.

41
00:02:23,020 --> 00:02:24,700
First of all, I want to check it.

42
00:02:24,710 --> 00:02:30,980
And if this is valid, then here I want to do I want to take one of the variable as a user and I just

43
00:02:30,980 --> 00:02:32,390
name it as a user object.

44
00:02:32,420 --> 00:02:34,480
OK, for now here I name it.

45
00:02:34,490 --> 00:02:37,480
And with this form I want to do I want to save this data.

46
00:02:37,790 --> 00:02:39,070
So I just save this data.

47
00:02:39,470 --> 00:02:44,600
So before that, that means when any user change their default image.

48
00:02:44,630 --> 00:02:49,590
So first of all, I want to actually put that comment as a false because of all I had to check it,

49
00:02:49,610 --> 00:02:54,560
that this user is updated, this current picture or not.

50
00:02:54,590 --> 00:02:56,120
So here we have to set it.

51
00:02:56,570 --> 00:03:00,490
I show you everything will be more clear to you, like here I submit.

52
00:03:00,500 --> 00:03:08,060
And with the Sabria I make as a comet comet a first of all, it will be as a false so it be as false

53
00:03:08,240 --> 00:03:10,140
and then with this user object.

54
00:03:10,250 --> 00:03:16,730
So with this user object I want to do on taxes or if you go to our model into the model.

55
00:03:16,740 --> 00:03:22,580
So that is our users, we have to actually make sure that this user updated this our profile picture.

56
00:03:22,580 --> 00:03:22,820
Right.

57
00:03:23,150 --> 00:03:27,060
So for now, I don't want to update it on Texas or this user.

58
00:03:27,680 --> 00:03:35,960
So here with this user, that means this user will be aware which user this user will be our this current

59
00:03:35,960 --> 00:03:36,260
user.

60
00:03:36,270 --> 00:03:40,820
So if you want to display that current user, that will be our request to do the right.

61
00:03:41,270 --> 00:03:45,370
So as I told you before, that will be our requested user, Redfin's.

62
00:03:45,410 --> 00:03:48,440
That means our user, which user is logging.

63
00:03:48,450 --> 00:03:50,740
So here it will be equal to our current user.

64
00:03:50,840 --> 00:03:55,790
So when it will be equal, then I want to do I to save this our data.

65
00:03:56,120 --> 00:03:59,130
That means this user object that I want to save it.

66
00:03:59,630 --> 00:04:00,970
So right now I save it.

67
00:04:01,220 --> 00:04:05,910
And after that, when it will be saved, that means when these images will be updated.

68
00:04:05,930 --> 00:04:09,740
So from here, when this image will be updated, what exactly should be rejected?

69
00:04:10,020 --> 00:04:13,350
It should be redirected to our displays.

70
00:04:13,370 --> 00:04:14,810
That means our profile is right.

71
00:04:14,840 --> 00:04:17,230
So I don't actually pass the things on here.

72
00:04:17,630 --> 00:04:21,280
So if you want to pass it, then it'll be as a return.

73
00:04:21,290 --> 00:04:23,270
And then our EDP response.

74
00:04:23,780 --> 00:04:27,080
Right, is to be response, redirect and then the reverse.

75
00:04:27,800 --> 00:04:33,350
So with this reverse here, I want to do an opposite profile position to access that our profile page

76
00:04:33,350 --> 00:04:34,790
that is in our app logging.

77
00:04:34,790 --> 00:04:37,370
If we go to that, you are ill suited that you are.

78
00:04:37,370 --> 00:04:39,580
Eladio, that is actually our profile.

79
00:04:39,770 --> 00:04:40,140
Right.

80
00:04:40,410 --> 00:04:41,980
So if you want to access it.

81
00:04:41,990 --> 00:04:43,970
So that is already added.

82
00:04:43,970 --> 00:04:47,450
Our decision to name our app name as the app logging.

83
00:04:47,720 --> 00:04:50,450
So with this app logging on takes us our this profile.

84
00:04:51,140 --> 00:04:58,340
I added our that is our app name and with this app name I want to access our part name, our part name,

85
00:04:58,340 --> 00:04:59,860
I name it as a profile.

86
00:04:59,870 --> 00:05:05,240
So no, I just simply added as a profile I hope is very much clear to your friend.

87
00:05:05,510 --> 00:05:07,370
And after that that is Orender.

88
00:05:07,520 --> 00:05:11,230
That means our redundant and then our base load it from here.

89
00:05:11,240 --> 00:05:13,160
I also parse that our form.

90
00:05:13,550 --> 00:05:15,230
That means it should be updated.

91
00:05:15,590 --> 00:05:16,790
So now let's check this out.

92
00:05:16,790 --> 00:05:19,070
If everything OK, then it should be work.

93
00:05:19,220 --> 00:05:22,010
I first of all, I wanted to click on to save all.

94
00:05:22,430 --> 00:05:24,830
And now, first of all, I want to check our server.

95
00:05:25,040 --> 00:05:27,380
You can see our service now perfectly running.

96
00:05:27,830 --> 00:05:28,970
Now, let's do that.

97
00:05:28,980 --> 00:05:31,250
We're going to actually change out this default image.

98
00:05:31,280 --> 00:05:37,220
I just refresh this page, not click as the change profile and now click on the tools file.

99
00:05:37,340 --> 00:05:43,400
And from here, for irrigation purposes, I want to do the use of the image like I want to choose this

100
00:05:43,400 --> 00:05:43,660
one.

101
00:05:43,690 --> 00:05:45,200
OK, like open.

102
00:05:45,650 --> 00:05:47,270
So that will be our images.

103
00:05:47,270 --> 00:05:48,710
Now click on the add picture.

104
00:05:51,890 --> 00:05:58,400
Yes, you can see when our default image is now become change and now to display our new image.

105
00:05:58,790 --> 00:05:59,990
So that is our new image.

106
00:06:00,020 --> 00:06:03,610
I have updated, I hope is very muscular to you right now.

107
00:06:03,860 --> 00:06:05,990
That is our new image is updated.

108
00:06:05,990 --> 00:06:13,190
And then you save this data and after points, then it's redirected to our with our SCDP response device

109
00:06:13,190 --> 00:06:14,470
to our profile page.

110
00:06:14,480 --> 00:06:18,040
You can see when it's updated, it's redirected to our profile page.

111
00:06:18,260 --> 00:06:23,180
But here, one thing's like right now, I have already uploaded our new image.

112
00:06:23,230 --> 00:06:23,540
Right.

113
00:06:23,540 --> 00:06:29,080
You can see our button is not visible because of all in our profile page into the profile.

114
00:06:29,090 --> 00:06:33,610
If you go to that profile, today's HTML into the profile of this table, what exactly I did.

115
00:06:33,920 --> 00:06:39,860
So when this user will have any new images, that means then issue will be visible.

116
00:06:39,860 --> 00:06:40,700
Our this part.

117
00:06:41,000 --> 00:06:41,360
Right.

118
00:06:41,600 --> 00:06:45,860
And Ayles, that means it will be as a default and the default area.

119
00:06:45,860 --> 00:06:51,030
I have added another class that that means I have added another Hatif and that is you can see that as

120
00:06:51,030 --> 00:06:52,910
a climate change profile picture.

121
00:06:52,910 --> 00:06:53,210
Right.

122
00:06:53,510 --> 00:06:55,780
So right now this portion is updated.

123
00:06:55,790 --> 00:06:58,040
That means right now I have the picture.

124
00:06:58,040 --> 00:07:01,910
If that means this user have some of the profile images for the reasons.

125
00:07:01,910 --> 00:07:03,950
Are only these images visible.

126
00:07:04,220 --> 00:07:04,570
Right.

127
00:07:04,580 --> 00:07:07,080
You can see right now only these images is visible.

128
00:07:07,100 --> 00:07:08,870
And before that was the default one.

129
00:07:08,890 --> 00:07:13,160
So that means this user don't have any profile images, then URLs.

130
00:07:13,160 --> 00:07:17,660
If the URL Syria, our default image, that means default user images visible.

131
00:07:17,810 --> 00:07:22,370
And for the default image section, I have added another one in our DeSales area.

132
00:07:22,670 --> 00:07:24,350
That is our change profile.

133
00:07:24,440 --> 00:07:26,540
So now we have to do we have to update it.

134
00:07:26,780 --> 00:07:32,450
Like right now, if this user wants to update their new image, then how can I get it right?

135
00:07:32,480 --> 00:07:35,460
So before that was actually replaced by our default image.

136
00:07:35,720 --> 00:07:39,890
Now we have to do we have to replace it by our D existing image.

137
00:07:40,370 --> 00:07:42,620
That means this user existing image.

138
00:07:42,680 --> 00:07:43,020
Right.

139
00:07:43,370 --> 00:07:48,230
So if you want to do that work, then for doing this, we have to do we have to create another class

140
00:07:48,230 --> 00:07:48,850
for this one.

141
00:07:48,860 --> 00:07:50,410
So don't worry, step by step.

142
00:07:50,420 --> 00:07:51,240
I will show you.

143
00:07:51,260 --> 00:07:52,250
So for doing this.

144
00:07:52,250 --> 00:07:55,070
First of all here, I want to do want to add another button.

145
00:07:55,070 --> 00:08:00,200
That means right now we are in particular this condition that this user has on the profile image.

146
00:08:00,560 --> 00:08:05,570
So here I want to do to take another like same better I copy it.

147
00:08:06,050 --> 00:08:11,780
And that means after these are the main ones into the main one area, I passed it.

148
00:08:11,840 --> 00:08:15,770
OK, so right now I don't display this very little.

149
00:08:15,770 --> 00:08:16,580
I will add it.

150
00:08:16,940 --> 00:08:24,110
So this will be also as the change profile picture, the step up one of the button, namely easily visible

151
00:08:24,110 --> 00:08:24,350
here.

152
00:08:24,350 --> 00:08:30,860
You can see there, there in between between info and then between s.m and now if you click the Savol

153
00:08:31,580 --> 00:08:33,830
so and now if you refresh it.

154
00:08:33,830 --> 00:08:34,100
Yeah.

155
00:08:34,160 --> 00:08:36,750
Now this is visible our change profile picture.

156
00:08:36,830 --> 00:08:39,440
So I want to do to put some of the bracket.

157
00:08:40,190 --> 00:08:46,010
That means here, here I put some of the bracket and the bracket.

158
00:08:46,140 --> 00:08:48,230
Now let's check this out again.

159
00:08:48,260 --> 00:08:51,980
Please save all and refresh it.

160
00:08:52,070 --> 00:08:55,000
Yeah, you can see that actually our change profile picture.

161
00:08:55,370 --> 00:09:00,260
So right now I want to do I want to update our existing this user profile image.

162
00:09:00,260 --> 00:09:01,910
So here we have to work.

163
00:09:01,910 --> 00:09:06,440
So for doing this, I first of all, I want to do, in our view, into the viewing area.

164
00:09:06,440 --> 00:09:08,690
I want to create another function.

165
00:09:09,410 --> 00:09:14,720
So also shall be as a logging bigger because of all that's all that our logging user details.

166
00:09:14,720 --> 00:09:14,970
Right.

167
00:09:15,050 --> 00:09:16,520
That means logging user profile.

168
00:09:16,850 --> 00:09:22,880
So I may meet one of the function name and I just made me the the change, Jane's profile, picture,

169
00:09:23,210 --> 00:09:24,770
profile and picture.

170
00:09:24,860 --> 00:09:28,520
So whatever you want right now, I make that as a change profile picture.

171
00:09:28,880 --> 00:09:32,060
And first of all, it should be sending our request.

172
00:09:32,480 --> 00:09:35,720
And also here we have to do we have to load our form.

173
00:09:35,850 --> 00:09:38,660
That means our also you have to pass some of the form.

174
00:09:38,660 --> 00:09:38,960
Right.

175
00:09:39,350 --> 00:09:46,490
So because of all when this change profile will be selected, then it will dictate to some of the profile

176
00:09:46,490 --> 00:09:47,020
picture.

177
00:09:47,030 --> 00:09:51,740
So here from here, we have updated our existing profile image.

178
00:09:51,950 --> 00:09:54,070
So for the regions here, take one of the variable.

179
00:09:54,140 --> 00:09:56,750
The form and the form area will be the same.

180
00:09:56,750 --> 00:09:58,960
Our profile profile picture.

181
00:09:58,970 --> 00:10:00,380
That means that is our class.

182
00:10:00,380 --> 00:10:02,120
We have already created that form.

183
00:10:02,120 --> 00:10:04,760
So in the form we consider the killer profile picture.

184
00:10:04,760 --> 00:10:05,020
Right.

185
00:10:05,030 --> 00:10:06,800
So from here we have to access it.

186
00:10:07,310 --> 00:10:11,750
So now I added our profile picture and into the profile picture area.

187
00:10:11,750 --> 00:10:15,500
We have to do we have to add our intestines request because of.

188
00:10:15,500 --> 00:10:16,040
All right.

189
00:10:16,040 --> 00:10:18,950
Now for this user already updated.

190
00:10:18,950 --> 00:10:20,320
One of them is friend.

191
00:10:20,420 --> 00:10:26,650
Make sure you understand that part very clearly because of all before that happens on the default image.

192
00:10:26,660 --> 00:10:29,300
So this user already updated that image.

193
00:10:29,300 --> 00:10:32,630
So right now, already there have some of the existing image.

194
00:10:32,750 --> 00:10:33,200
Right.

195
00:10:33,410 --> 00:10:38,330
So for the reasons here, if one takes that existing image here, we have to do we have to make at the

196
00:10:38,330 --> 00:10:44,390
instance in a sense that is actually existing this user all the detail.

197
00:10:44,400 --> 00:10:46,790
So I want to access this user.

198
00:10:47,030 --> 00:10:50,000
That means a logging user whose user is currently logging.

199
00:10:50,340 --> 00:10:50,670
So if you.

200
00:10:50,860 --> 00:10:57,490
It says that current user then the request that will be under our biggest user, right, and with this

201
00:10:57,490 --> 00:11:00,800
request user, I want to do on Texas our listings.

202
00:11:00,820 --> 00:11:04,910
I want to access our model into the model area that is our relation.

203
00:11:04,930 --> 00:11:07,550
I put the name with our user profile.

204
00:11:07,630 --> 00:11:07,910
Right.

205
00:11:07,930 --> 00:11:10,850
Not that our user class did that user profile area.

206
00:11:10,860 --> 00:11:13,620
I have already added our this profile.

207
00:11:13,960 --> 00:11:17,370
So no, I don't want to access it with our user profile.

208
00:11:17,380 --> 00:11:19,260
So this will be our user profile.

209
00:11:19,420 --> 00:11:22,640
And after that I want to do I want to load one of the page.

210
00:11:22,780 --> 00:11:25,170
So here also we have to do have to load on the page.

211
00:11:25,190 --> 00:11:30,110
The better I copy it, it'll be just like the same and I just save it.

212
00:11:30,130 --> 00:11:32,530
OK, so that means here it shall be saved.

213
00:11:32,530 --> 00:11:35,950
That means, you know, return render request in our app logging.

214
00:11:35,950 --> 00:11:37,840
That is our pro picture at this table.

215
00:11:38,360 --> 00:11:42,400
I loaded our this as Tamalpais and then contest from here.

216
00:11:42,400 --> 00:11:43,650
I passed out this form.

217
00:11:43,900 --> 00:11:49,310
So for this I want to do want to create one of the what that means in our app logging and in that you

218
00:11:49,330 --> 00:11:49,930
are still here.

219
00:11:49,930 --> 00:11:57,280
I want to do want to create another one better copy paste if will be at the chain's picture.

220
00:11:57,310 --> 00:12:00,310
I name it as a change and then picture.

221
00:12:00,970 --> 00:12:07,210
OK, so that will be as a picture and it is a very I have created of the function, our function name

222
00:12:07,210 --> 00:12:08,760
as a change for picture.

223
00:12:09,280 --> 00:12:16,090
So now and we don't expect it to be the change per picture and I just name it as a Jamesburg picture.

224
00:12:16,280 --> 00:12:20,950
OK, that means our but I added as a change picture to no one to do.

225
00:12:20,950 --> 00:12:22,360
I want to put that our link.

226
00:12:22,370 --> 00:12:23,410
That means this link.

227
00:12:23,410 --> 00:12:26,200
I want to put the things in our particular this button.

228
00:12:26,200 --> 00:12:27,850
So that is in our profile.

229
00:12:28,330 --> 00:12:34,260
Now go to our profile e-mail and the profile is the same that things as a blancs right now on the ground

230
00:12:34,270 --> 00:12:34,900
updated.

231
00:12:35,500 --> 00:12:39,250
So that will be our Eurail and then our app blocking.

232
00:12:39,250 --> 00:12:40,990
That means that is our app logging.

233
00:12:40,990 --> 00:12:44,500
And then I have created our name as a transport picture.

234
00:12:45,040 --> 00:12:48,760
So now I want to update our change picture.

235
00:12:48,880 --> 00:12:49,260
Right.

236
00:12:49,570 --> 00:12:55,930
So if you look at the Savol, so that means he should be reelected to our particular business function

237
00:12:55,930 --> 00:12:56,740
into the functionality.

238
00:12:56,780 --> 00:13:01,070
I have loaded our this space that Mr. Picture Address timbrell.

239
00:13:01,360 --> 00:13:04,550
So now everything will be more clear to you into the instant.

240
00:13:04,680 --> 00:13:10,180
Christiania, I have already used our current user profile that like if you're not looking to save all,

241
00:13:10,870 --> 00:13:14,410
first of all, on the check that servers are very specifically running.

242
00:13:14,410 --> 00:13:19,480
And now if you refresh it and now click on the change profile picture.

243
00:13:19,480 --> 00:13:22,330
Yes, you can see friend now is visible.

244
00:13:22,330 --> 00:13:28,150
Our this current user profile in this current user eye for this current is that I have already updated

245
00:13:28,150 --> 00:13:29,170
one of the profile images.

246
00:13:29,170 --> 00:13:30,700
That means that our profile image.

247
00:13:30,710 --> 00:13:31,000
Right.

248
00:13:31,270 --> 00:13:34,150
So for the reasons here, I have used that in a sense.

249
00:13:34,420 --> 00:13:40,330
So with this instance, our current user that we switch user is already logged in and this current user

250
00:13:40,810 --> 00:13:42,910
user profile I want to access.

251
00:13:42,910 --> 00:13:47,770
OK, so for the reasons here, you can see if you click on here, there is our current user profile

252
00:13:47,770 --> 00:13:51,520
image is visible and then they have another option for the changes.

253
00:13:51,520 --> 00:13:55,240
So if you want to change it right now, we have to work for our change this image.

254
00:13:55,660 --> 00:14:00,100
So for doing this, we have to do we have to work in our this view.

255
00:14:00,790 --> 00:14:03,730
So that is our request and that is our farms.

256
00:14:03,730 --> 00:14:04,090
Right.

257
00:14:04,360 --> 00:14:08,920
So after this from here, I want to go on the board that our conditional conditional will be just like

258
00:14:08,920 --> 00:14:09,100
that.

259
00:14:09,100 --> 00:14:09,790
Same before.

260
00:14:09,790 --> 00:14:14,770
I think you already remember what exactly you have to do if conditions are different here.

261
00:14:14,770 --> 00:14:17,590
I have loaded that have rendered our same base.

262
00:14:17,860 --> 00:14:22,360
So if you want to create another different space and into the different position to work, then you

263
00:14:22,360 --> 00:14:22,960
can work it.

264
00:14:22,960 --> 00:14:30,250
Right now you can see for this change, I loaded our pro picture add and also for this space that means

265
00:14:30,250 --> 00:14:32,170
our change profile picture.

266
00:14:32,170 --> 00:14:37,150
I added the same pace and also the consider the same pace from here.

267
00:14:37,150 --> 00:14:38,350
I pass that as a form.

268
00:14:38,740 --> 00:14:41,680
So for the reasons here, I also pass that as a form here.

269
00:14:41,680 --> 00:14:43,170
I also pass that other from.

270
00:14:43,390 --> 00:14:48,580
So if you want to change it, you can change that different template for specific this function.

271
00:14:48,760 --> 00:14:49,120
Right.

272
00:14:49,360 --> 00:14:50,470
So now it's OK with me.

273
00:14:50,470 --> 00:14:54,610
So even if it will be same as a request and then method.

274
00:14:55,480 --> 00:14:59,500
So first of all it be check that as a post or not.

275
00:14:59,950 --> 00:15:04,750
So I have already discussed a lot of the time there is a pause and then our form.

276
00:15:05,350 --> 00:15:12,370
So with this form right now, with our profile, that means our profile pic so that we our profile piece

277
00:15:12,370 --> 00:15:14,530
right into the profile area here.

278
00:15:14,590 --> 00:15:19,510
First of all, you have to pass that our request request will be as opposed, same as before.

279
00:15:19,720 --> 00:15:23,440
And also from here, we have updated the images.

280
00:15:23,440 --> 00:15:23,670
Right.

281
00:15:23,680 --> 00:15:28,450
So if you updated that image, as you can see, we have to also use that our request files.

282
00:15:28,810 --> 00:15:32,110
So now I also want to want to use that already case files.

283
00:15:32,410 --> 00:15:38,830
And here what exactly the data I want to write, I here I want to override our existing DC mess here.

284
00:15:38,830 --> 00:15:40,990
I want to replace it with our new image.

285
00:15:40,990 --> 00:15:41,260
Right.

286
00:15:41,530 --> 00:15:45,070
For the reasons here we have to do we have to reload our instant data.

287
00:15:45,310 --> 00:15:47,080
That means this instance data.

288
00:15:47,230 --> 00:15:47,650
Right.

289
00:15:47,650 --> 00:15:49,570
So I just simply copy it.

290
00:15:49,810 --> 00:15:50,740
And here.

291
00:15:51,070 --> 00:15:56,970
After this, I loaded our instant current user, that current user, this profile I want to replace.

292
00:15:57,220 --> 00:16:00,910
So that is or can you just request that the image?

293
00:16:00,910 --> 00:16:01,870
I want to update it.

294
00:16:02,170 --> 00:16:03,630
I put that things on here.

295
00:16:04,030 --> 00:16:06,040
I hope it's very much clear to your friend.

296
00:16:06,250 --> 00:16:11,680
And after that, that means year after that, we have to do that to get that validation.

297
00:16:11,710 --> 00:16:20,380
That means that if if and then our phone if our phone I want to check that is valid, is valid.

298
00:16:20,410 --> 00:16:22,960
First of all, we have to do we have to check it.

299
00:16:23,290 --> 00:16:28,860
And then here I want to do to save our this from data and to save it.

300
00:16:29,020 --> 00:16:36,080
So when it'll be saved after that, I don't want to pass on the return and the return return with the

301
00:16:36,220 --> 00:16:39,800
CDC response response to that.

302
00:16:40,040 --> 00:16:43,450
With this terrible response to that, I want to pass with the reverse.

303
00:16:44,060 --> 00:16:50,190
So with this reverse, I want to pass two samples that I want to pass that thing through to our profile.

304
00:16:50,200 --> 00:16:51,400
That means our profile page.

305
00:16:51,460 --> 00:16:51,820
Right.

306
00:16:52,210 --> 00:16:55,600
So here it should be just like the same suffering.

307
00:16:55,630 --> 00:16:57,010
That's all we have to do.

308
00:16:57,160 --> 00:16:58,860
So that's all we have to do.

309
00:16:58,870 --> 00:17:01,990
I hope every line should be very much clear to you.

310
00:17:01,990 --> 00:17:06,160
So here that is our pretending that that is right now when it's updated.

311
00:17:06,250 --> 00:17:09,460
So redacted to our profile page right now.

312
00:17:09,460 --> 00:17:10,240
Let's check this out.

313
00:17:10,240 --> 00:17:15,350
If you click the save all, I could save all of us to fill to check it.

314
00:17:15,400 --> 00:17:20,500
Everything is running well and now it should be the same as a pro here.

315
00:17:20,530 --> 00:17:25,300
I have already loaded our form and the Crispi and they have those CSIR left and right.

316
00:17:25,810 --> 00:17:29,500
And also here I have added that Insteps, because of all that, is the same.

317
00:17:29,500 --> 00:17:35,380
I have already tested and we have already tested you for this add function.

318
00:17:35,380 --> 00:17:35,680
Right?

319
00:17:35,680 --> 00:17:40,150
So now we are actually doing the same things here only we have updated our existing current.

320
00:17:40,510 --> 00:17:42,520
This picture I want to update.

321
00:17:43,120 --> 00:17:44,980
So if you're not to refresh.

322
00:17:45,670 --> 00:17:51,260
So right now into the profile area, there is this user already admitted that the following is an updated

323
00:17:51,260 --> 00:17:52,000
the new image.

324
00:17:52,000 --> 00:17:54,970
No, I want to change that again, the choosing file.

325
00:17:55,570 --> 00:17:58,510
And right now I want to use this one.

326
00:17:58,540 --> 00:18:01,930
OK, now open it, because the add picture.

327
00:18:02,500 --> 00:18:05,890
Yes, you can see is perfectly now updated.

328
00:18:06,370 --> 00:18:08,500
I hope friend is very clear to you.

329
00:18:08,500 --> 00:18:15,550
So this user, when this user actually created an account by default, that would be some of the picture.

330
00:18:15,550 --> 00:18:21,220
And then after this user, if you want to admit it, that image, then he can update this image.

331
00:18:21,220 --> 00:18:21,670
Right.

332
00:18:21,670 --> 00:18:23,620
So it's now perfectly working.

333
00:18:23,620 --> 00:18:27,760
And from here, you want to change that profile details, you can change it.

334
00:18:28,300 --> 00:18:29,700
But here one things.

335
00:18:29,770 --> 00:18:34,580
What about the picture I have uploaded from here is what exactly is safe?

336
00:18:34,600 --> 00:18:35,820
I have already declared that.

337
00:18:35,830 --> 00:18:40,330
But that means you will be safe in our media into the media.

338
00:18:40,930 --> 00:18:46,150
If we go to our model, into the model here you can see I have already uploaded to our profile picture

339
00:18:46,150 --> 00:18:48,130
will be saved in particular this folder.

340
00:18:48,460 --> 00:18:51,160
That means that is our media folder and there is a profile picture.

341
00:18:51,160 --> 00:18:51,400
Right.

342
00:18:51,730 --> 00:18:54,970
So now here you can see that is all the picture is visible.

343
00:18:55,480 --> 00:18:56,840
So it is the profile picture.

344
00:18:57,100 --> 00:18:59,050
They have the two picture I have uploaded.

345
00:18:59,230 --> 00:19:01,450
So right now our two picture is uploaded.

346
00:19:01,450 --> 00:19:01,720
Right.

347
00:19:01,960 --> 00:19:07,420
So here I want to do when I want to change our new image, that means right now this picture already

348
00:19:07,420 --> 00:19:08,590
have on here.

349
00:19:08,920 --> 00:19:11,080
I show you like I want to change it.

350
00:19:11,710 --> 00:19:17,890
I want to change it without this, of course, now OpenNet, because the picture now exists showing

351
00:19:17,890 --> 00:19:18,790
our this picture.

352
00:19:18,790 --> 00:19:24,790
But right now, if you go to our file, you can see there's a new picture is added as a Django course.

353
00:19:25,060 --> 00:19:26,320
So here it should be.

354
00:19:26,320 --> 00:19:27,310
Not like that way.

355
00:19:27,310 --> 00:19:32,290
When our new image will be replaced with our old images, our old image should be deleted.

356
00:19:32,410 --> 00:19:32,740
Right.

357
00:19:32,740 --> 00:19:38,440
So if you want to do that work in Django, there have also one of the packets as a Django clean up.

358
00:19:38,650 --> 00:19:44,230
So I want to do want to install it then with this we can actually do that work very easily.

359
00:19:44,470 --> 00:19:49,040
So if you want to do that work, first of all, you have to do you have to go to your product directly,

360
00:19:49,090 --> 00:19:50,670
that means that is a positive way.

361
00:19:50,680 --> 00:19:57,850
And here we have to do we have to install one of the package as a beep, beep install and then that

362
00:19:57,850 --> 00:20:06,130
Django G and go Django hype and then clean up and then clean up.

363
00:20:06,130 --> 00:20:09,960
So if you as they enter, so make sure you install it, there is a beep.

364
00:20:09,970 --> 00:20:11,680
Install Django clean up.

365
00:20:14,420 --> 00:20:20,390
So right now here, this event is showing as a requirement already satisfied, so you have already installed

366
00:20:20,390 --> 00:20:22,480
it for the resources training as required.

367
00:20:22,700 --> 00:20:28,400
That means the equipment already satisfied, then you should be actually installed in your system.

368
00:20:28,430 --> 00:20:30,650
OK, that means the installed can go clean up.

369
00:20:30,660 --> 00:20:32,200
So that is actually the command line.

370
00:20:32,510 --> 00:20:35,930
And after that, we have to do we have to work in our main project.

371
00:20:36,360 --> 00:20:40,460
That means our main project and go to the setting so that, no, we don't need this.

372
00:20:40,460 --> 00:20:44,360
I want to remove it and make the things a little clean.

373
00:20:44,450 --> 00:20:47,900
OK, so now go to main project and go to the setting.

374
00:20:48,890 --> 00:20:55,730
So here, here, here in our install the various intravenous toilet area here, we have to bit.

375
00:20:56,390 --> 00:20:58,040
So here we have to.

376
00:20:58,240 --> 00:21:09,110
So here you have to add that as a jingle jangle and then the underscore, then clean up, clean up dot

377
00:21:09,110 --> 00:21:17,320
apps and then clean clean up config because you make sure you add that part.

378
00:21:17,630 --> 00:21:21,500
OK, so that is all jango clean up apps and the clean up config.

379
00:21:21,500 --> 00:21:22,980
So that should be added.

380
00:21:23,020 --> 00:21:26,930
Now if you click the save also, that's all you have to do actually.

381
00:21:27,410 --> 00:21:31,550
So here you can see right now our disk Django course is executed.

382
00:21:31,550 --> 00:21:31,770
Right.

383
00:21:31,790 --> 00:21:34,360
So that means this image is visible.

384
00:21:34,370 --> 00:21:35,360
So that is our image.

385
00:21:35,690 --> 00:21:37,150
So now to do to replace it.

386
00:21:37,160 --> 00:21:38,620
Now what exactly will be happen?

387
00:21:38,630 --> 00:21:41,460
I just click the refresh and change it.

388
00:21:41,960 --> 00:21:50,190
So right now, to change it with our this one as a Laravel seven open, it looks like the add picture.

389
00:21:50,420 --> 00:21:52,190
So now you can see it's not updated.

390
00:21:52,430 --> 00:21:54,200
But right now, if you go to our site.

391
00:21:54,540 --> 00:21:55,300
Yes.

392
00:21:55,310 --> 00:22:01,050
Here you can see for now our previous one, that is actually the Django course on Django KOSDAQ being.

393
00:22:01,070 --> 00:22:03,520
So now it's replaced with this one.

394
00:22:03,530 --> 00:22:04,700
That means a lot of L7.

395
00:22:05,290 --> 00:22:07,960
That means our previous one is totally gone from here.

396
00:22:08,300 --> 00:22:08,580
Right.

397
00:22:08,960 --> 00:22:14,510
So how much easily you can do that work with using that Django clean up, I hope is very much clear

398
00:22:14,510 --> 00:22:14,880
to you.

399
00:22:14,900 --> 00:22:17,420
So that is also the element of the package.

400
00:22:17,780 --> 00:22:22,040
So first of all, you have to install it and also you have to add it in your setting.

401
00:22:22,760 --> 00:22:26,110
Perfect, I hope is very much clear to your friend and in know.

402
00:22:26,120 --> 00:22:28,940
Next video to discuss about that navigation bar.

403
00:22:28,970 --> 00:22:33,240
How can working with this in our next video, I will show you that things with the live example.

404
00:22:33,650 --> 00:22:35,230
So thanks for watching.

405
00:22:35,240 --> 00:22:37,100
I'll see you in the next video.
