1
00:00:00,180 --> 00:00:01,860
Hello, friend, welcome back.

2
00:00:02,280 --> 00:00:08,220
In a previous video, we successfully complete our chain sponsored option, so now in this video, I

3
00:00:08,220 --> 00:00:11,610
wanted to work with our user profile inmates.

4
00:00:11,610 --> 00:00:17,880
So if you want to work with this user profile inmates, first of all, I want to do like I want to add

5
00:00:17,880 --> 00:00:19,050
some of the default inmates.

6
00:00:19,050 --> 00:00:26,070
So that will be I just take one of the inmates for the download, not JPC for now, go to our directories.

7
00:00:26,070 --> 00:00:31,350
So that is our project as my block project and the media tool in the media folder here.

8
00:00:31,350 --> 00:00:35,980
I just added one of the pictures that is a download of Tabrizi.

9
00:00:36,420 --> 00:00:42,120
OK, so if you want to work with these images, then we have to do we have to add some of the things,

10
00:00:42,120 --> 00:00:44,810
you know, are you all right?

11
00:00:45,560 --> 00:00:47,970
So right now I just simply remove everything.

12
00:00:47,970 --> 00:00:51,300
And the main part, that means our main block project.

13
00:00:51,300 --> 00:00:53,910
And you are still seeing that you are lady.

14
00:00:54,150 --> 00:00:56,310
First of all, you have to import our settings.

15
00:00:56,310 --> 00:00:56,570
Right?

16
00:00:57,090 --> 00:01:02,300
So from here, first of all, I just loaded I have already discussed about the things we do friends.

17
00:01:02,310 --> 00:01:06,180
So that is the Django and that gonif like that in the config.

18
00:01:06,180 --> 00:01:08,760
And from here we have the input, the settings.

19
00:01:10,050 --> 00:01:11,280
So that is our settings.

20
00:01:11,280 --> 00:01:11,550
Right.

21
00:01:11,760 --> 00:01:22,230
And also from from Django, from the Django than the Country Cantrip and then our static files,

22
00:01:25,480 --> 00:01:31,260
static files and then you else from the the static files, you or else from here we have to import,

23
00:01:31,650 --> 00:01:33,390
we have to import that static.

24
00:01:34,290 --> 00:01:35,760
We have to import that static.

25
00:01:35,760 --> 00:01:37,580
We have to import that static files.

26
00:01:37,590 --> 00:01:38,460
You are Alberton.

27
00:01:41,880 --> 00:01:47,640
So there is I have already discussed about the things we do in fundamental that you are ill and pattern,

28
00:01:48,990 --> 00:01:51,960
OK, that is you are Patton, so make sure you added.

29
00:01:52,230 --> 00:01:58,350
So if you are working with these images, we have to add our settings and then our static files and

30
00:01:58,350 --> 00:02:00,420
you from you are all we have to import.

31
00:02:00,420 --> 00:02:02,460
That is static and the static files.

32
00:02:02,460 --> 00:02:03,390
You are patterns.

33
00:02:03,630 --> 00:02:05,610
And also here after this.

34
00:02:06,000 --> 00:02:13,370
After this we have to add as you are well, you are old patterns, you are old patterns.

35
00:02:13,380 --> 00:02:19,470
And from here there is a plastic little plastic world that our static files you are pattern.

36
00:02:20,310 --> 00:02:23,640
That means that swan is that you are patterns here.

37
00:02:23,640 --> 00:02:24,690
We have to load it.

38
00:02:24,960 --> 00:02:27,180
And also another model.

39
00:02:27,810 --> 00:02:34,220
You are the patterns from your old patterns, you to be as a plastic roll and then is static.

40
00:02:34,950 --> 00:02:39,180
So with this static here, we have to add two of these things.

41
00:02:39,180 --> 00:02:45,810
We have to add that mid-April and the media are outright so with the settings and that means the settings

42
00:02:45,810 --> 00:02:47,160
and the settings area.

43
00:02:47,160 --> 00:02:52,520
The result will be, as a media media underscore, you are all right.

44
00:02:52,530 --> 00:02:54,080
So that will be our media role.

45
00:02:54,090 --> 00:02:56,640
If you go to our settings into the settings.

46
00:02:56,640 --> 00:02:59,370
I have already added most of this.

47
00:02:59,370 --> 00:03:01,690
You consider the media route and the media.

48
00:03:01,690 --> 00:03:02,070
You are.

49
00:03:02,520 --> 00:03:05,310
So now, first of all, we have to add both of this.

50
00:03:05,460 --> 00:03:09,690
So that will be in our settings and the media world and the media world.

51
00:03:09,690 --> 00:03:17,160
And after that, there is a document route, document underscore route so that the default one friend,

52
00:03:17,160 --> 00:03:21,570
we have to use it if you want to, working with the images.

53
00:03:21,570 --> 00:03:22,830
So that is your settings.

54
00:03:22,830 --> 00:03:25,590
And from here we have to have that media route.

55
00:03:26,910 --> 00:03:30,090
OK, media and then media that route.

56
00:03:30,630 --> 00:03:35,460
OK, so we have to add it and also into the media area, into the media folder.

57
00:03:35,460 --> 00:03:39,360
I have already loaded one of the picture as a download deputy.

58
00:03:39,420 --> 00:03:46,200
So as a tool here, I want to do with this user will be locked in, then this user profile image will

59
00:03:46,200 --> 00:03:46,740
be visible.

60
00:03:46,740 --> 00:03:52,770
So if this user had already and some of the profile images, then you should be visible right then when

61
00:03:52,770 --> 00:03:58,290
this user will create one of the profile by default, one of the images will be visible and that will

62
00:03:58,290 --> 00:03:59,730
be our by default image.

63
00:03:59,730 --> 00:04:02,400
OK, so it will be as a by default image.

64
00:04:02,400 --> 00:04:07,530
And then this user want to update new images, then he can update it.

65
00:04:07,920 --> 00:04:11,490
So if you want to do that work here, I want to do it in our profile.

66
00:04:11,490 --> 00:04:14,160
So that means our profile, that e-mail.

67
00:04:14,170 --> 00:04:16,830
So now go to our profile.

68
00:04:16,950 --> 00:04:20,490
That is a profile of Daniel Silva, the profile of this area.

69
00:04:20,490 --> 00:04:22,470
I wanted to put one of the condition.

70
00:04:22,490 --> 00:04:24,150
So after the profile.

71
00:04:25,210 --> 00:04:30,900
So here I want to do and the food on the if condition, everything will be more clear to you.

72
00:04:30,900 --> 00:04:31,500
Don't worry.

73
00:04:31,500 --> 00:04:34,510
So here I take one of the if condition and with this.

74
00:04:34,510 --> 00:04:34,880
Sorry.

75
00:04:34,890 --> 00:04:39,200
So here I had it on the if condition and if that with the user.

76
00:04:39,300 --> 00:04:40,710
So with this user.

77
00:04:41,190 --> 00:04:48,510
If you go to our that is our app logging, if you go to our app logging models into the models, you

78
00:04:48,510 --> 00:04:54,120
can see that is actually take our all that relation and name my name ID with that, our user profile.

79
00:04:54,120 --> 00:04:58,560
And with this user profile, we get all the our details from our user class.

80
00:04:58,860 --> 00:05:03,990
And I take the things with these variables with this user, we can actually access our all the feel.

81
00:05:03,990 --> 00:05:08,070
You can see we access our user name, we access our email and the first name.

82
00:05:08,070 --> 00:05:08,750
The last name.

83
00:05:09,030 --> 00:05:10,440
So now with this user.

84
00:05:10,440 --> 00:05:12,140
So that is our model.

85
00:05:12,150 --> 00:05:18,090
So with this user I want to do that is another feel for our images that in the profile pic.

86
00:05:18,090 --> 00:05:18,360
Right.

87
00:05:18,660 --> 00:05:23,880
So I have already created one of the table and that is our table feel as a profile picture.

88
00:05:24,210 --> 00:05:30,300
So now I want to do want to access our this user, our relation name, and I may meet with our user

89
00:05:30,300 --> 00:05:30,780
profile.

90
00:05:31,170 --> 00:05:36,270
So now with this user, with this user, I may meet our user profile.

91
00:05:36,270 --> 00:05:39,540
That means this will be assigned our user all the field.

92
00:05:39,570 --> 00:05:46,890
OK, and then after that here I want to do if this user as a user profile, then I don't want to add

93
00:05:46,890 --> 00:05:49,800
one of the, um, images.

94
00:05:49,920 --> 00:05:54,840
So here that means our default images and aless will be displayed out before me.

95
00:05:54,840 --> 00:06:02,010
So I name it another one of the URLs, OK, Ale's is will be displayed another one.

96
00:06:02,010 --> 00:06:06,780
And after that we have to do we have to end it there with the end if condition.

97
00:06:07,350 --> 00:06:07,710
Right.

98
00:06:07,920 --> 00:06:14,010
So here I want to do want to load on the image stack image tag image essentially into the image search.

99
00:06:14,040 --> 00:06:15,660
This will be our dynamic image.

100
00:06:15,660 --> 00:06:18,850
That means which image is this user updated.

101
00:06:18,870 --> 00:06:24,570
OK, so here we shall be dynamic one of the images and else then it'll be if this user profile that

102
00:06:24,570 --> 00:06:32,550
have any user OK, that means if this user have if you go here, if this user have any profile image,

103
00:06:32,550 --> 00:06:38,640
then it should be displayed on particular this portion, this portion rather than should be displayed

104
00:06:38,640 --> 00:06:39,560
our default image.

105
00:06:39,930 --> 00:06:40,580
So now for to.

106
00:06:40,880 --> 00:06:44,840
To put it so, that will be as a dynamic, so that is in our media.

107
00:06:45,790 --> 00:06:48,900
OK, that is in our media and then with this user.

108
00:06:49,040 --> 00:06:55,250
So with this user, I want to do I want to display our which pays to display our full name.

109
00:06:56,420 --> 00:06:58,700
So that is in our model.

110
00:06:58,730 --> 00:07:05,330
So with this user, our relation name, with our user profile, so with this user profile and want to

111
00:07:05,330 --> 00:07:10,700
access our these people, that means that there are additional Lynnfield as a profile picture.

112
00:07:11,120 --> 00:07:12,820
So now I want to do and to access it.

113
00:07:13,220 --> 00:07:21,320
So that will be displayed our profile emails and also then it's also used to display our DC strategy.

114
00:07:21,630 --> 00:07:25,960
So here in our media folder, I have already added all the downloaded JBC.

115
00:07:26,360 --> 00:07:38,230
So it will be as a static, one of the images in the media and then our download download or JPC and

116
00:07:38,360 --> 00:07:42,110
then it shall be displayed our this image that is our default image.

117
00:07:42,220 --> 00:07:44,020
OK, so now let's check this out.

118
00:07:44,030 --> 00:07:47,920
If you now click as Savol, if you don't click and save.

119
00:07:47,920 --> 00:07:51,640
Well, first of all, to check it, everything's running well.

120
00:07:51,650 --> 00:07:54,040
And now I want to do and refresh it.

121
00:07:54,620 --> 00:07:55,370
Yes.

122
00:07:55,370 --> 00:07:58,310
You can see so perfectly display our default image.

123
00:07:58,730 --> 00:08:04,100
So right now, this user didn't update any images in our particular D.

124
00:08:04,100 --> 00:08:04,850
Filled area.

125
00:08:04,850 --> 00:08:08,390
That means in our they have the one feel as a profile piece.

126
00:08:08,390 --> 00:08:08,660
Right.

127
00:08:08,930 --> 00:08:12,010
So here I didn't upload any images for the results.

128
00:08:12,020 --> 00:08:15,270
By default, our image is our default image is visible.

129
00:08:15,290 --> 00:08:17,180
That means our this image is visible.

130
00:08:17,510 --> 00:08:21,950
And here also fun to put on the glass as a round circle.

131
00:08:21,960 --> 00:08:24,290
You can use it so better.

132
00:08:25,310 --> 00:08:26,780
Here, here.

133
00:08:26,780 --> 00:08:33,710
I wanted to put on the class and I name it as a rounded, rounded circle

134
00:08:36,610 --> 00:08:37,580
around the circle.

135
00:08:37,610 --> 00:08:44,900
So now if you click the save all and now refresh it here, you can see now it's actually around the

136
00:08:44,900 --> 00:08:45,370
circle.

137
00:08:45,800 --> 00:08:52,760
So now I also want to add that plus and add the plus for our dynamic picture so that it will be our

138
00:08:52,760 --> 00:08:55,510
same class I hope is very clear to friends.

139
00:08:55,530 --> 00:08:57,640
So now our image is visible.

140
00:08:57,950 --> 00:09:00,830
So also here you want to put some of the white for this image.

141
00:09:00,860 --> 00:09:04,930
You can put that white right down the resource plaza here.

142
00:09:04,940 --> 00:09:10,700
After this, I was put on the wide and wide as a 120 pixel.

143
00:09:12,080 --> 00:09:14,090
Now let's check this out again.

144
00:09:14,090 --> 00:09:19,040
Click the save all refresh it here is now perfect.

145
00:09:19,050 --> 00:09:21,470
So that is the image side I want to use.

146
00:09:21,470 --> 00:09:22,280
That is a white.

147
00:09:22,860 --> 00:09:26,270
So I just copied and also pasted for our dynamic image.

148
00:09:26,720 --> 00:09:32,390
So now here, what exactly we have to do like here I want to do want to add on the button for change

149
00:09:32,390 --> 00:09:32,790
that image.

150
00:09:32,810 --> 00:09:39,020
So in this user actually created some of the account by default, our default image will be visible.

151
00:09:39,020 --> 00:09:39,410
Right.

152
00:09:39,620 --> 00:09:45,650
And after that they have the two portion like here I want to add on the button for the change I made.

153
00:09:45,670 --> 00:09:52,430
So first of all, if this user want to change their profile image, then that is our default image will

154
00:09:52,430 --> 00:09:54,160
be replaced with our new image.

155
00:09:54,170 --> 00:09:54,400
Right.

156
00:09:54,690 --> 00:09:56,450
That means this is new image.

157
00:09:56,570 --> 00:10:02,780
And after that, if this user want to update that image again, then what exactly will replace it will

158
00:10:02,780 --> 00:10:04,820
be replaced that current image.

159
00:10:04,860 --> 00:10:05,070
Right.

160
00:10:05,090 --> 00:10:07,370
That that might be some of the current images.

161
00:10:07,370 --> 00:10:10,320
Then this current image will be replaced by the new image.

162
00:10:10,340 --> 00:10:13,610
So they have the two portion I hope you can will understand about it.

163
00:10:13,820 --> 00:10:18,500
So don't worry, when I actually activate it, then everything will be more clear to you.

164
00:10:18,920 --> 00:10:20,790
So right now they have the default image.

165
00:10:20,810 --> 00:10:26,690
I want to do fast work is I want to replace our this default image to that user new image.

166
00:10:26,900 --> 00:10:29,680
OK, so how can do that work for doing this here.

167
00:10:29,690 --> 00:10:31,480
I want to do want to add one of the button.

168
00:10:32,150 --> 00:10:35,360
So that is our SAAC here.

169
00:10:35,630 --> 00:10:41,840
OK, here I want to do undertake one of the bracket and I just take one of the Hadith and I take on

170
00:10:41,870 --> 00:10:44,330
the bottom name as a jain's.

171
00:10:45,260 --> 00:10:55,120
Sorry, I name it as it changed my name into the change profile profile in picture.

172
00:10:56,000 --> 00:11:03,740
OK, I name it as a change profile picture and here better I put on the glass, I put the glasses a

173
00:11:03,740 --> 00:11:13,370
bit in between info and then with the NSM, so they step up on the button down to create their save

174
00:11:13,370 --> 00:11:13,930
all.

175
00:11:14,450 --> 00:11:21,290
And now if you refresh it, you considered one of the button as a change profile so that no, first

176
00:11:21,290 --> 00:11:24,960
of all, I want to do I want to create the function for change this profile.

177
00:11:24,960 --> 00:11:29,850
Like if you click on the change profile, then this user can able to change their default image.

178
00:11:29,870 --> 00:11:32,620
It should be replaced with our this user new image.

179
00:11:32,630 --> 00:11:32,960
Right.

180
00:11:33,140 --> 00:11:36,410
So for doing this, we have to do we have to work in our form.

181
00:11:36,410 --> 00:11:39,740
That means right now that is you are.

182
00:11:39,860 --> 00:11:40,460
We don't need.

183
00:11:40,980 --> 00:11:43,680
And then the view will be needed.

184
00:11:44,570 --> 00:11:49,800
Uh, profi that models and then setting, we don't need the setting.

185
00:11:50,160 --> 00:11:52,680
So for doing this, first of all, we have to do work.

186
00:11:52,680 --> 00:11:58,830
You know, our app logging and the form and the family are so into the models in the model that is actually

187
00:11:58,830 --> 00:11:59,840
our field right now.

188
00:11:59,850 --> 00:12:02,420
First of all, I want to do want to take out this user profile.

189
00:12:02,910 --> 00:12:06,570
So if you want to take it, first of all, you have to do have to put it right.

190
00:12:06,720 --> 00:12:08,960
That is in our form in our app.

191
00:12:09,450 --> 00:12:10,560
That means from what app?

192
00:12:10,560 --> 00:12:11,160
Logging.

193
00:12:11,160 --> 00:12:19,770
There is a model's blocking models from here down the line to import our this glass that is our user

194
00:12:19,770 --> 00:12:22,430
profile because of the user profile.

195
00:12:22,440 --> 00:12:25,440
Plus, I have added our field for the profile.

196
00:12:26,040 --> 00:12:27,780
So now I just simply import it.

197
00:12:27,780 --> 00:12:35,490
And then also I want to create another class, I create one of the class and I just name it as a profile

198
00:12:35,490 --> 00:12:38,310
piece, profile piece.

199
00:12:38,310 --> 00:12:44,190
And first of all, here we have to do we have to load the form that with our Django default forms and

200
00:12:44,190 --> 00:12:51,060
then I want to do it will be inserted our model form that we the Django that have done their model model

201
00:12:51,060 --> 00:12:51,330
from.

202
00:12:51,360 --> 00:12:52,920
So now I don't want to load it.

203
00:12:53,700 --> 00:12:56,520
So it been edited our Django model from.

204
00:12:56,790 --> 00:13:01,980
And then I want to do I want to add our class, that is, I want to create another middle class.

205
00:13:02,880 --> 00:13:08,280
And I just that will be as a matter into the middle class area with this model.

206
00:13:09,930 --> 00:13:15,720
OK, with this model, I want to do I want to add our this class.

207
00:13:15,720 --> 00:13:18,970
That means our user profile and I just simply load it.

208
00:13:19,200 --> 00:13:24,300
So now for the change profile picture I want to do in our view, that means in our view here, we have

209
00:13:24,300 --> 00:13:29,160
to create one of the we have to create one of the function.

210
00:13:29,160 --> 00:13:29,410
Right.

211
00:13:29,910 --> 00:13:34,860
So this function also will be as a logging, bigger because of all this profile.

212
00:13:34,860 --> 00:13:36,110
That is our profile picture.

213
00:13:36,120 --> 00:13:41,820
So when this user actually logging and after that logging user can change their profile, that so it'll

214
00:13:41,820 --> 00:13:43,820
will be as a logging record.

215
00:13:43,830 --> 00:13:47,790
And then I name it as a Dave, one of the function name.

216
00:13:47,790 --> 00:13:48,990
I name it as the ad.

217
00:13:49,480 --> 00:13:58,440
OK, add our profile, our profile picture and just name it and which will be past that request.

218
00:13:58,440 --> 00:14:01,730
And then I want to do I want to take one of the form.

219
00:14:02,100 --> 00:14:06,640
So from will be our I have created one of the class.

220
00:14:06,650 --> 00:14:08,540
So that is our profile picture.

221
00:14:08,550 --> 00:14:08,850
Right.

222
00:14:08,850 --> 00:14:10,250
So now I want to access it.

223
00:14:10,260 --> 00:14:12,350
So here I just simply access it.

224
00:14:13,260 --> 00:14:15,030
So that will be our profile picture.

225
00:14:15,040 --> 00:14:18,510
So if you want to access it, first of all, we have to do we have to import it.

226
00:14:18,510 --> 00:14:18,800
Right.

227
00:14:19,350 --> 00:14:21,570
So we have to import it from our form.

228
00:14:21,570 --> 00:14:28,920
So I have already put out and sign a form that user profile change and no want to add our new one as

229
00:14:28,920 --> 00:14:29,780
a profile piece.

230
00:14:30,450 --> 00:14:30,950
Perfect.

231
00:14:31,110 --> 00:14:33,660
So that is our profile piece.

232
00:14:33,840 --> 00:14:35,850
And after that, I want to do want to return it.

233
00:14:36,060 --> 00:14:43,470
That means from here it should be done a return with the renderer and into the return in there with

234
00:14:43,470 --> 00:14:44,230
the request.

235
00:14:44,250 --> 00:14:50,850
I don't want to create one of the pays for this as a, you know, app logging into the app logging area.

236
00:14:50,850 --> 00:14:56,430
I want to create one of the base for that Minsoo and actually user click on here.

237
00:14:56,430 --> 00:15:01,920
It should be loaded onto that at that pace so that the page I want to create in our app logging on to

238
00:15:01,920 --> 00:15:04,620
create one of the new page and I just name it as a pro.

239
00:15:05,340 --> 00:15:09,210
OK, profile and picture that in the profile picture.

240
00:15:09,210 --> 00:15:11,200
Add DOT estimates.

241
00:15:11,220 --> 00:15:13,980
So this step up on the page I want to create.

242
00:15:14,310 --> 00:15:15,600
I just copied.

243
00:15:17,100 --> 00:15:20,760
Sorry I didn't save it so open it.

244
00:15:20,760 --> 00:15:24,160
So still be as a pro profile picture.

245
00:15:24,160 --> 00:15:32,100
And so I just copied and now I just simply create one of the new one as a profile picture add and here

246
00:15:32,220 --> 00:15:34,140
it will be as a profile picture.

247
00:15:34,140 --> 00:15:37,110
Add this HTML and also that is our form.

248
00:15:37,110 --> 00:15:39,360
I want to parse that form in our dictionary.

249
00:15:39,510 --> 00:15:40,890
So if you want to pass it.

250
00:15:41,460 --> 00:15:45,990
So with the contest that will be our discussion into the discussion.

251
00:15:45,990 --> 00:15:48,780
That will be our form and I pass it our form.

252
00:15:48,780 --> 00:15:51,990
So now we can actually use that form in our base.

253
00:15:51,990 --> 00:15:54,570
That is our pro picture at this Tamalpais.

254
00:15:54,570 --> 00:15:55,470
That means here.

255
00:15:55,740 --> 00:15:59,640
So this will be just like old logging, OK, from now logging.

256
00:15:59,640 --> 00:16:07,170
I just copy everything from here and now in our broad base, I load it suits will be extended our to

257
00:16:07,170 --> 00:16:13,380
email and also here I want to load onto the form and I want to load on the case before and the title

258
00:16:13,380 --> 00:16:20,850
will be I or title will be as a profile picture profile picture update.

259
00:16:21,840 --> 00:16:24,600
So that will be as a profile picture update.

260
00:16:24,600 --> 00:16:36,510
And now and here it will be as a add your profile picture.

261
00:16:37,680 --> 00:16:40,100
OK, this will be as sure as I add the.

262
00:16:40,380 --> 00:16:47,640
Full picture, and that will be one of the form and the from here I pass on the form, so to load this

263
00:16:47,640 --> 00:16:53,730
form on here, that will be as crispy and then we see yourself talking and that will be on the button

264
00:16:54,030 --> 00:16:59,670
at the submit button and then button class and it will be as the add picture.

265
00:17:02,160 --> 00:17:06,500
OK, sorry you be as the add picture and then form.

266
00:17:06,780 --> 00:17:08,130
So friend here one thing.

267
00:17:08,140 --> 00:17:10,740
So I want to do, I want to update the images.

268
00:17:10,740 --> 00:17:16,260
So when you pass any kinds of images that are then here also we have to do we have to add one of the

269
00:17:16,260 --> 00:17:18,250
NC type in particular that area.

270
00:17:18,570 --> 00:17:24,540
So if you want to use that insideout, that would be the NC type and then you can see that in multiple

271
00:17:24,540 --> 00:17:25,450
form data.

272
00:17:25,470 --> 00:17:27,360
So make sure you add it.

273
00:17:27,360 --> 00:17:31,190
Without this, you cannot upload any new images.

274
00:17:31,200 --> 00:17:37,320
Just so if you want to working with the images, make sure you add that NC type as a multiplatform data.

275
00:17:37,530 --> 00:17:41,990
So now if you want to access it for access it, we have to do we have to create on the wall path.

276
00:17:42,000 --> 00:17:42,330
Right.

277
00:17:42,870 --> 00:17:45,870
So, you know, logging and you are well here.

278
00:17:45,870 --> 00:17:47,460
I want to create one of the new one.

279
00:17:48,420 --> 00:17:56,550
And I just named the chains like Chains and Key Chains Profile.

280
00:17:59,660 --> 00:18:06,880
Profile emails, so they step up one of the name I want to declare as a Chiang's profile image.

281
00:18:07,250 --> 00:18:13,060
OK, and then into the view I have created on the function or function name as the Adepero picture.

282
00:18:13,250 --> 00:18:19,860
That means that is our function and I name it as the ad per picture and also name that that picture.

283
00:18:20,150 --> 00:18:27,000
So no one to load out this name that is this your name in our particular Bartonella that is in our profile.

284
00:18:27,620 --> 00:18:31,490
Now go to our profile page and the profile page here.

285
00:18:31,910 --> 00:18:34,960
That is our change profile picture here on the landlord.

286
00:18:34,970 --> 00:18:35,900
Our this you.

287
00:18:36,860 --> 00:18:39,020
So that will be as you are little.

288
00:18:39,470 --> 00:18:44,690
And then that is in our app name as the app logging's.

289
00:18:44,690 --> 00:18:52,960
So with this app logging on to do an index, that's our part name, our pop name as a at pro picture.

290
00:18:53,510 --> 00:18:56,320
No, I loaded our ad per picture.

291
00:18:56,600 --> 00:19:00,010
So now if you click on the save all I click here to save all.

292
00:19:00,020 --> 00:19:04,160
First of all, I want to check that server and the server area here.

293
00:19:04,160 --> 00:19:09,400
You can see snowshoeing as it Django Forms has no attribute as a model farm area.

294
00:19:09,800 --> 00:19:13,850
That means e that is actually that or is visible in our forms.

295
00:19:13,850 --> 00:19:17,510
That is form Dark Fae go to our farms.

296
00:19:18,350 --> 00:19:20,470
So that is our farms dot FYI.

297
00:19:20,510 --> 00:19:24,110
And here you can see the really spelling mistake.

298
00:19:24,110 --> 00:19:25,940
It will be as a model form.

299
00:19:26,690 --> 00:19:32,860
If you are OK, you should be as a model for them and also for this model and want to assign some of

300
00:19:32,860 --> 00:19:34,700
the fields that miss our field data.

301
00:19:34,730 --> 00:19:40,040
So after that, here I load that feels right now, first of all, I want to take all that our field

302
00:19:40,040 --> 00:19:40,480
data.

303
00:19:40,940 --> 00:19:44,810
So if you want to take, then you have to write down the double on the line as all.

304
00:19:45,530 --> 00:19:46,580
So that will be as all.

305
00:19:46,590 --> 00:19:49,900
So that is all that form that I want to load.

306
00:19:50,240 --> 00:19:51,840
So that will be our form data.

307
00:19:51,860 --> 00:19:53,540
And also there is a profile picture.

308
00:19:53,570 --> 00:19:58,980
So right now I want to do and duplicate the save all and I want to check it again.

309
00:19:59,330 --> 00:20:01,510
Yes, you can see our server is not totally running.

310
00:20:01,880 --> 00:20:03,910
So here I pulled one of the spelling mistake.

311
00:20:03,920 --> 00:20:06,830
It should be as a form that, OK, that is a model form.

312
00:20:06,830 --> 00:20:08,480
And I just take all the Darfield.

313
00:20:08,870 --> 00:20:10,040
So now let's check this out.

314
00:20:10,040 --> 00:20:14,420
If you click the refresh now click as I change profile picture.

315
00:20:14,570 --> 00:20:15,050
Yes.

316
00:20:15,050 --> 00:20:15,560
You can see.

317
00:20:15,830 --> 00:20:18,260
So here friend, I have used that all.

318
00:20:18,410 --> 00:20:23,940
OK, you can see I have used that all for the resources is also getting our all that user data, that

319
00:20:23,960 --> 00:20:27,110
is all that user data and then our profile picture data.

320
00:20:27,440 --> 00:20:33,350
So that is actually the things I have assigning in our model into the model here, considering our user

321
00:20:33,350 --> 00:20:33,890
data.

322
00:20:33,890 --> 00:20:35,480
And that is our profile picture.

323
00:20:35,480 --> 00:20:38,710
So that is our profile picture field and there is all that user data.

324
00:20:38,840 --> 00:20:41,840
So here I want to do only our profile picture.

325
00:20:41,840 --> 00:20:43,820
That file option will be visible here.

326
00:20:43,820 --> 00:20:45,770
I don't want to visible that user.

327
00:20:45,770 --> 00:20:52,340
So for now, in our form into the form area, I declared our all that feel for the business actually

328
00:20:52,340 --> 00:20:53,470
is getting all the data.

329
00:20:53,480 --> 00:20:57,710
So if you want to display specific particular on the field, that's right.

330
00:20:57,710 --> 00:21:01,820
Now I want to do on display our only this profile picture feel.

331
00:21:01,830 --> 00:21:02,210
Right.

332
00:21:02,210 --> 00:21:04,130
So here I want to visible visibility.

333
00:21:04,130 --> 00:21:07,490
So you have to do you have to add that with our bracket.

334
00:21:07,820 --> 00:21:11,480
And then here we have to add that our profile picture.

335
00:21:11,870 --> 00:21:13,220
So that will be our field.

336
00:21:13,220 --> 00:21:17,750
I just simply added our D profile picture file will be visible.

337
00:21:18,230 --> 00:21:19,310
Now let's check this out.

338
00:21:19,310 --> 00:21:23,660
If you're looking to save all and now if you refresh it.

339
00:21:23,930 --> 00:21:25,550
Yeah, now you can see it's not visible.

340
00:21:25,550 --> 00:21:26,510
Only one feel.

341
00:21:26,510 --> 00:21:28,010
And that is our profile picture.

342
00:21:28,100 --> 00:21:34,790
So now we have to do we have to work for our upload that image in our that means, in our view, into

343
00:21:34,790 --> 00:21:35,390
the view.

344
00:21:35,390 --> 00:21:36,440
That is our method.

345
00:21:36,770 --> 00:21:37,790
That means this function.

346
00:21:37,790 --> 00:21:41,870
We have to work OK, so we can do that work better to continue this process.

347
00:21:42,110 --> 00:21:45,440
In our next video, I will show that things with a live example.

348
00:21:45,920 --> 00:21:49,190
So thanks for watching and I'll see you in the next video.
