1
00:00:00,150 --> 00:00:00,930
Hello, friend.

2
00:00:01,080 --> 00:00:01,770
Come back.

3
00:00:02,220 --> 00:00:08,640
In our previous video, we successfully complete our profile pages and also from here you can update

4
00:00:08,640 --> 00:00:11,880
your profile, all the details, information, right.

5
00:00:11,910 --> 00:00:15,300
So now I want to do I want to work in our social media post.

6
00:00:15,300 --> 00:00:20,460
That means I want to create Instagram, type up one of the social media projects so where users can

7
00:00:20,460 --> 00:00:26,820
upload some of the images and where another image can like or dislike this post rather than.

8
00:00:26,820 --> 00:00:30,120
And also, I want to add another function for the following.

9
00:00:30,150 --> 00:00:35,900
This user are unfollowing this user so they step up one of the social media projects I want to create.

10
00:00:35,910 --> 00:00:39,180
So for doing this, we have to do we have to create on the table.

11
00:00:39,180 --> 00:00:39,430
Right.

12
00:00:39,840 --> 00:00:41,910
So better if you do that.

13
00:00:42,060 --> 00:00:46,830
Well, I think you already remember that, but that means we have to work in our post app and that is

14
00:00:46,830 --> 00:00:47,430
our models.

15
00:00:47,850 --> 00:00:51,390
So better I want to do and actually remove everything here.

16
00:00:51,390 --> 00:00:52,260
We don't need it.

17
00:00:52,980 --> 00:00:54,120
I remove everything.

18
00:00:54,120 --> 00:00:56,220
First of all, I want to create our model table.

19
00:00:56,220 --> 00:00:59,580
That means all that are postulated that we want to create.

20
00:00:59,580 --> 00:01:03,980
OK, so that is our application name and that is all models into the model area.

21
00:01:03,990 --> 00:01:05,760
First of all, we will need our user.

22
00:01:05,760 --> 00:01:09,630
I have already agreed to complete our authentication.

23
00:01:09,630 --> 00:01:12,990
So now, first of all, I want to do want to get our user class.

24
00:01:12,990 --> 00:01:15,240
So that is in our form.

25
00:01:15,240 --> 00:01:19,520
And then that Django right from the Django and then the country.

26
00:01:20,370 --> 00:01:24,180
So then the country and then art and then the models.

27
00:01:24,540 --> 00:01:27,750
So from the model, I want to import our user class.

28
00:01:27,990 --> 00:01:28,860
That is our user.

29
00:01:29,340 --> 00:01:32,390
So friend, I hope you already remember that part.

30
00:01:32,400 --> 00:01:34,970
With this user we can actually access our user.

31
00:01:35,280 --> 00:01:37,770
So now I want to do for our social media project.

32
00:01:37,770 --> 00:01:40,530
First of all, I want to create on the table for the post.

33
00:01:40,530 --> 00:01:43,740
That means what user can add some of the post, right.

34
00:01:43,740 --> 00:01:48,600
For the regions I want to do and to create on the class and I just name it as a post.

35
00:01:49,170 --> 00:01:53,970
And this post will be also inherited our models and then our model class.

36
00:01:54,510 --> 00:01:56,670
I hope you already remember that part.

37
00:01:56,670 --> 00:01:59,420
And then I want to do want to add some of the field.

38
00:01:59,550 --> 00:02:05,790
So for this post, as I told you, some of the user can able to add some of the post for the reasons

39
00:02:05,790 --> 00:02:12,180
here we have to add that altered, I think, namely that the OK name does auto or whatever you want.

40
00:02:12,190 --> 00:02:14,400
So now I name it as the auto.

41
00:02:14,400 --> 00:02:16,230
And then we thought this model.

42
00:02:16,230 --> 00:02:21,030
I also want to declare one of the foreign key because I want to create one of the relation with our

43
00:02:21,060 --> 00:02:21,720
TS user.

44
00:02:21,720 --> 00:02:22,040
Right.

45
00:02:22,380 --> 00:02:25,370
So if you want to do that work, it'll be just like the same before.

46
00:02:25,380 --> 00:02:29,160
So with this model, I take one of the foreign key.

47
00:02:32,430 --> 00:02:37,050
So it shall be as a foreign key, I take one of the foreign key and I want to create the tension with

48
00:02:37,050 --> 00:02:44,100
our user model right now, I add that the user model and then also be just like the same as the on underscore

49
00:02:44,110 --> 00:02:46,860
dialect that with this own dialect.

50
00:02:46,860 --> 00:02:49,580
So it'll be just like the same with these models.

51
00:02:49,620 --> 00:02:52,730
It'll be as a cascade, right.

52
00:02:52,740 --> 00:02:53,610
It'll be a cascade.

53
00:02:53,610 --> 00:02:59,730
That means whatever the field I want to post, you know, add in our post table when our this user will

54
00:02:59,730 --> 00:03:03,140
be Dilek, this user elected, all that data will be selected.

55
00:03:03,150 --> 00:03:06,300
So I name it as on Delek model as a cascade.

56
00:03:06,540 --> 00:03:09,410
And also the person the name that means the relation name.

57
00:03:09,720 --> 00:03:15,480
So if you want to display that religion name, it will be as a related related underscore name.

58
00:03:15,840 --> 00:03:16,310
Right.

59
00:03:16,320 --> 00:03:20,870
It'll be the related name and I name it as a name to the post.

60
00:03:20,880 --> 00:03:25,080
OK, so it'll be as a post and then I take another field as email.

61
00:03:25,320 --> 00:03:32,700
So that will be our filled with this model and then I will be as the image will type in field.

62
00:03:33,450 --> 00:03:34,980
So it'll be as image will.

63
00:03:34,980 --> 00:03:35,330
Right.

64
00:03:35,340 --> 00:03:37,770
And also here we have to set our upload.

65
00:03:38,430 --> 00:03:44,280
That means the upload underscore to what exactly will be uploaded, all that file being made one of

66
00:03:44,280 --> 00:03:45,960
the folder as opposed Dimmeys.

67
00:03:46,470 --> 00:03:51,350
That means all the postulated images will be saved, in particular this folder.

68
00:03:51,360 --> 00:03:54,030
So you know our media into the media area.

69
00:03:54,030 --> 00:03:57,990
I want to do want to create another folder and I name it as opposed to images.

70
00:03:58,380 --> 00:04:04,770
That means all that our posts, related images will be saved in our media and then our post images folder.

71
00:04:04,860 --> 00:04:05,250
Right.

72
00:04:05,700 --> 00:04:09,900
And after that, I take another one for the image caption and name it as a caption.

73
00:04:10,530 --> 00:04:12,360
So that's all that our actually field.

74
00:04:12,360 --> 00:04:19,440
So I know I take another feel as a caption and with this model it will be as a character filled, it

75
00:04:20,070 --> 00:04:21,450
will be as a character field.

76
00:04:21,750 --> 00:04:26,760
And then also if you want to put some of the maximum length, you can add that maximum Lintott be the

77
00:04:26,760 --> 00:04:28,500
maximum underscore length.

78
00:04:29,730 --> 00:04:33,930
So maximum length will be a name that is 264.

79
00:04:34,050 --> 00:04:41,850
And then I make it a blank as a true blank will be as a true I it as a blank will be the truth.

80
00:04:42,150 --> 00:04:50,910
And then and also I want to do I want to add another field after our uploaded I name it as upload underscore

81
00:04:50,910 --> 00:04:51,330
date.

82
00:04:51,340 --> 00:04:54,930
OK, that is when this user actually uploaded this post.

83
00:04:55,290 --> 00:05:02,190
So with this model this will be as a date pinfield that when the date and time field.

84
00:05:03,120 --> 00:05:05,070
So they will be the date and field.

85
00:05:05,070 --> 00:05:10,890
And also here, as I told you, to have another function as an auto sorry auto underscore.

86
00:05:10,890 --> 00:05:14,730
Now underscore that message will be automatically created here.

87
00:05:14,730 --> 00:05:18,720
You don't need to do anything when this user will be uploaded.

88
00:05:18,720 --> 00:05:19,470
And he paused.

89
00:05:19,680 --> 00:05:21,570
Then automatically we created this.

90
00:05:21,570 --> 00:05:23,100
Did OK with our auto.

91
00:05:23,100 --> 00:05:24,840
Now add that is all true.

92
00:05:24,840 --> 00:05:31,980
I make it as a true and also I want to want to update it that I did it for the update, that it will

93
00:05:31,980 --> 00:05:39,120
be with the models and also should be as a date field and I make it as an auto now, not the auto.

94
00:05:39,120 --> 00:05:41,970
Now add it Silvy as it auto now.

95
00:05:42,120 --> 00:05:45,330
Right, so this auto no want to make it also the true.

96
00:05:45,990 --> 00:05:49,020
So in fundamental I have already discussed about everything.

97
00:05:49,020 --> 00:05:51,450
I hope you will understand about it.

98
00:05:51,450 --> 00:05:56,500
OK, so now if you also want to make that our post, that means the descending order is from the visible

99
00:05:56,500 --> 00:05:56,700
lead.

100
00:05:56,710 --> 00:06:00,240
So I have already declared discourse about the things we do.

101
00:06:00,240 --> 00:06:02,250
So they have done the class I have to add.

102
00:06:03,180 --> 00:06:03,630
Sorry.

103
00:06:04,650 --> 00:06:09,990
So I want to add another class as a middle class because of all I have already created on the class.

104
00:06:10,110 --> 00:06:12,420
I created another class inside this class.

105
00:06:12,420 --> 00:06:14,310
So you have to make our middle class right.

106
00:06:14,670 --> 00:06:20,040
So the middle class area I want to do I want to declare our already OK order.

107
00:06:21,340 --> 00:06:23,820
Ordering our ordering will be as a descending order.

108
00:06:23,820 --> 00:06:26,640
That was last post will be displayed as in our fast.

109
00:06:26,640 --> 00:06:30,330
So if you want to get that our last post, we can get it with our upload.

110
00:06:30,350 --> 00:06:34,200
It did so now with the upload a date, I want to make it as a minus.

111
00:06:34,200 --> 00:06:39,480
That means it will be automatically so our last post in our fostoria.

112
00:06:39,600 --> 00:06:43,290
So in our previous section I have already discussed about the things we do.

113
00:06:43,530 --> 00:06:46,470
So now we are using it again in our post area.

114
00:06:46,470 --> 00:06:51,870
OK, so I have created one of the class as a table as opposed to the post table.

115
00:06:52,110 --> 00:06:54,540
I have created our altered images.

116
00:06:54,540 --> 00:06:57,510
Caption That will be all that our feel right.

117
00:06:57,720 --> 00:07:01,560
And also our this post will be showing as a descending order.

118
00:07:01,860 --> 00:07:07,500
That means our last order will be displayed in our fast and also for our social media project, as I

119
00:07:07,500 --> 00:07:08,070
told you.

120
00:07:08,070 --> 00:07:11,430
So when this user will insert the post.

121
00:07:11,430 --> 00:07:17,460
So this I want to go on to add that one of the like option, that means another user can like this post

122
00:07:17,460 --> 00:07:18,840
or the D like this post.

123
00:07:19,050 --> 00:07:23,040
So you actually connected with two terbil each will be connected with the user.

124
00:07:23,040 --> 00:07:25,920
That means who each user like which post.

125
00:07:25,920 --> 00:07:26,340
Right.

126
00:07:26,340 --> 00:07:28,650
So here we have to also add some better.

127
00:07:28,650 --> 00:07:30,390
First of all, I want to create all the.

128
00:07:30,480 --> 00:07:36,840
Every class, so class will be animator's alike, look alike, and then all suits will be inherited,

129
00:07:36,840 --> 00:07:40,980
our models and the model suits will be inherited both of these.

130
00:07:41,220 --> 00:07:43,860
And then I want to do I want to take as a post.

131
00:07:43,860 --> 00:07:47,990
First of all, post will be needed because of this result.

132
00:07:48,120 --> 00:07:51,290
Which post actually he put that as a like.

133
00:07:51,630 --> 00:07:56,520
So with this I want to create another relation with our post model.

134
00:07:56,530 --> 00:08:02,640
So that will be a different key with our foreign key I want to do and to create the relation with our

135
00:08:02,640 --> 00:08:03,390
post model.

136
00:08:03,780 --> 00:08:05,580
So that will be our disposal model.

137
00:08:05,580 --> 00:08:05,920
Right.

138
00:08:05,940 --> 00:08:06,870
So here we are.

139
00:08:06,870 --> 00:08:10,230
I just feel that that is our formula declared.

140
00:08:10,530 --> 00:08:17,850
And then I want to do want to make that also the same as the only that is on the left and on the left

141
00:08:17,850 --> 00:08:19,150
with these models.

142
00:08:19,230 --> 00:08:23,420
It will be as a cascade, right.

143
00:08:23,430 --> 00:08:24,870
That will be as a cascade.

144
00:08:25,170 --> 00:08:33,180
And also put that related name related related name related name will be, I name it as a lightpost

145
00:08:33,810 --> 00:08:35,610
like like underscore post.

146
00:08:36,600 --> 00:08:37,140
Perfect.

147
00:08:37,140 --> 00:08:40,670
And also we have to create that another relation with our user model.

148
00:08:40,680 --> 00:08:47,060
So I take another variable as a user and with these models it should be a different key, right.

149
00:08:47,070 --> 00:08:53,970
It will be a foreign key and foreign key without which model that is the user model and then the only

150
00:08:53,970 --> 00:08:57,900
select and with these models and then the cascade.

151
00:08:59,400 --> 00:09:02,610
So that will be the cascade and also put on the name.

152
00:09:03,030 --> 00:09:04,560
That means our deselection name.

153
00:09:04,560 --> 00:09:04,950
My name.

154
00:09:04,950 --> 00:09:07,380
It is a related related name.

155
00:09:07,380 --> 00:09:10,410
I name it as like OK, so whatever you want.

156
00:09:10,420 --> 00:09:12,000
So now I make it as Oliker.

157
00:09:12,570 --> 00:09:17,370
I hope Brand is very much clear to you because here this information will be needed.

158
00:09:17,370 --> 00:09:19,760
Right, so which user actually like which post.

159
00:09:20,070 --> 00:09:23,880
So here we have to add both of these Synnott previous block Bozic.

160
00:09:23,880 --> 00:09:25,020
We did the same thing.

161
00:09:25,020 --> 00:09:28,290
So that is considered the same concept.

162
00:09:28,560 --> 00:09:35,700
I apply it for our this social media project and also to create one of the date that means a name it

163
00:09:35,700 --> 00:09:42,600
as a date, created a date, created another field, be as a hidden field, as a date created.

164
00:09:42,600 --> 00:09:46,260
And with these models it should be the date time field.

165
00:09:47,010 --> 00:09:51,050
So that time field is to be automatically created one of the date.

166
00:09:51,050 --> 00:09:57,810
That message will be as it auto right auto now and that message will be created will automatically date.

167
00:09:57,810 --> 00:09:59,070
And I make it as a true.

168
00:09:59,430 --> 00:10:03,990
And also if you display in your database that is which you are like which post.

169
00:10:03,990 --> 00:10:09,640
So if you want to display that in our database area, I think you already remember that part so that

170
00:10:09,660 --> 00:10:11,400
you can actually declare that function.

171
00:10:11,580 --> 00:10:14,700
That is our extreme right.

172
00:10:14,700 --> 00:10:17,760
With this string, we can actually make it as a self.

173
00:10:19,470 --> 00:10:24,000
So that will be as a self right symbol to self radioland on the visible.

174
00:10:24,000 --> 00:10:28,500
That means to return some of the data from here and return and return.

175
00:10:28,500 --> 00:10:33,540
I want to pass two of this sound to pass our self user data and also pull data.

176
00:10:33,540 --> 00:10:36,360
That means I want to visible that things in our admin area.

177
00:10:36,690 --> 00:10:42,990
That means, as I told you before, into the admin area, if you want to visible that any kinds of details,

178
00:10:42,990 --> 00:10:45,270
then you can display it with our self.

179
00:10:45,270 --> 00:10:47,460
So don't want to pass two of this.

180
00:10:47,460 --> 00:10:51,390
One will be one will be as our user.

181
00:10:51,480 --> 00:10:54,960
And also I want to take another one, another one.

182
00:10:54,960 --> 00:10:58,340
And also it will be as our post doc.

183
00:10:58,390 --> 00:10:59,810
So here we have to add it.

184
00:10:59,820 --> 00:11:03,240
That means that also another function as a format.

185
00:11:03,570 --> 00:11:05,510
So with this format you can add it.

186
00:11:05,520 --> 00:11:08,970
I show you whenever I need, everything will be much clearer to you.

187
00:11:09,090 --> 00:11:13,920
So here I do unto you display our user and also the post.

188
00:11:13,920 --> 00:11:18,210
So if you want to access that user or the post, you have to access it with the self.

189
00:11:18,210 --> 00:11:18,500
Right.

190
00:11:19,050 --> 00:11:22,500
So as told you before, that is all pretty basic, right?

191
00:11:22,500 --> 00:11:23,850
That is our user.

192
00:11:24,120 --> 00:11:30,300
And also in Texas, our post, that means with the self and with the self underdo and Texas outpost.

193
00:11:30,960 --> 00:11:31,470
Perfect.

194
00:11:32,220 --> 00:11:33,620
So that's all you have to do.

195
00:11:33,630 --> 00:11:39,410
So here I want to do and to create another our table will be as alike like and it should be connected

196
00:11:39,420 --> 00:11:40,380
with our post.

197
00:11:40,380 --> 00:11:44,730
That is our post model and that is our user, that is our default user class.

198
00:11:44,730 --> 00:11:45,000
Right.

199
00:11:45,300 --> 00:11:51,180
And then I take another feel actually automatically created when this user actually like our this post

200
00:11:51,600 --> 00:11:54,090
and then it should be displayed in our admin area.

201
00:11:54,090 --> 00:11:55,470
That is in our administration.

202
00:11:55,470 --> 00:12:00,960
We display which user I like, which post so username and our post will be visible.

203
00:12:01,080 --> 00:12:07,320
So here I have created both of these and now also want to add another option for the following because

204
00:12:07,320 --> 00:12:08,460
of all Instagram.

205
00:12:08,460 --> 00:12:13,470
What exactly they have the conditions like in Instagram, they have the option for the following this

206
00:12:13,470 --> 00:12:13,920
user.

207
00:12:13,920 --> 00:12:17,820
And when you're following this user, then you can actually visible this user.

208
00:12:17,820 --> 00:12:21,300
All that post right after that flowing, you can actually visible it.

209
00:12:21,600 --> 00:12:25,500
So all in all, social media project, I also want to add this functionality.

210
00:12:25,830 --> 00:12:29,820
So for doing this right now, work together, save all so that.

211
00:12:29,990 --> 00:12:36,500
Is our post, and also, if you want to add that flooring that is directly connected with our user,

212
00:12:36,510 --> 00:12:39,410
that means user will be floor another user, right.

213
00:12:39,440 --> 00:12:41,320
So that is actually connected with our user.

214
00:12:41,660 --> 00:12:44,960
So better in our app into this app blogging application area.

215
00:12:44,960 --> 00:12:49,350
That is our models I have already created and the model that is our user profile.

216
00:12:49,370 --> 00:12:54,010
So now I want to do want to create another class on another class for the following.

217
00:12:54,050 --> 00:13:01,190
That means I get another I want to create another class and name it as a floor, OK, you name it to

218
00:13:01,190 --> 00:13:01,630
the floor.

219
00:13:01,640 --> 00:13:05,530
So friend, when I'm ultranet it then everything will be very clear to you.

220
00:13:05,540 --> 00:13:06,830
So don't worry about it.

221
00:13:06,830 --> 00:13:08,960
Just take that concept.

222
00:13:08,970 --> 00:13:09,800
That is how it will be.

223
00:13:09,800 --> 00:13:12,290
Annotate our models and the model right.

224
00:13:13,010 --> 00:13:17,500
Will be just like the same which will be in our model and for the following year.

225
00:13:17,540 --> 00:13:22,640
Also we have to do we have to create some of the foreign Q and here we have to connect it with our user

226
00:13:22,640 --> 00:13:22,970
model.

227
00:13:22,970 --> 00:13:23,210
Right.

228
00:13:23,240 --> 00:13:25,800
So here I have already improved our user.

229
00:13:26,330 --> 00:13:29,780
So now I want to do want to take one of the variable as a flaw.

230
00:13:31,820 --> 00:13:33,680
OK, I take one of the variable of the floor.

231
00:13:33,680 --> 00:13:39,740
And then with these models, our foreign key, we have to declare we have to create that relation with

232
00:13:39,740 --> 00:13:40,790
our user model.

233
00:13:41,120 --> 00:13:44,390
And then the same concept which will be on the left.

234
00:13:44,840 --> 00:13:51,920
On the left will be our with our models, with these models, which will be as a cascade, that will

235
00:13:51,920 --> 00:13:52,820
be as a cascade.

236
00:13:52,820 --> 00:13:56,270
And also to some of the relation name that will be the related name.

237
00:13:56,960 --> 00:13:57,310
Right.

238
00:13:57,350 --> 00:14:02,300
That will be is related related name and put that name as a floor.

239
00:14:04,190 --> 00:14:08,690
OK, I will be on the floor and also take another variable as a flowing.

240
00:14:08,930 --> 00:14:10,880
That means which user actually flowing.

241
00:14:10,880 --> 00:14:11,570
Which user.

242
00:14:11,720 --> 00:14:15,980
That means I name it as a flowing which will be the flowing.

243
00:14:15,980 --> 00:14:20,030
And then with these models I want to declare that foreign key.

244
00:14:20,780 --> 00:14:25,280
I declare another foreign key and I want to create that relation with our user.

245
00:14:26,120 --> 00:14:28,130
That means our user class.

246
00:14:28,130 --> 00:14:36,620
And then it will be on the direct on underscore Delek on the left will be with our models and then the

247
00:14:36,620 --> 00:14:44,810
cascade, which will be as a cascade, and also the ports on the related name redacted name for this

248
00:14:44,810 --> 00:14:45,080
one.

249
00:14:45,080 --> 00:14:50,450
I name it as a flowing OK, name it as a flowing perfect.

250
00:14:50,630 --> 00:14:52,700
I hope friend is very much clear to you.

251
00:14:52,700 --> 00:14:54,590
So that is our end of the class as a flowing.

252
00:14:54,600 --> 00:14:56,810
So now I want to do if you look at the Savol.

253
00:14:57,530 --> 00:15:04,850
So first of all and check that Sahlberg here is not showing some of the error in our forced into the

254
00:15:04,850 --> 00:15:07,720
models, so do the post models.

255
00:15:07,730 --> 00:15:18,770
That means here in Line-by-line 20-20 if you go and the model here, number twenty two here you can

256
00:15:18,770 --> 00:15:20,360
see snowshoeing of the arrow.

257
00:15:20,780 --> 00:15:23,090
You're still showing us the invalid Syntex.

258
00:15:23,090 --> 00:15:27,800
That means you can see it'll be actually in one teched.

259
00:15:27,980 --> 00:15:31,660
That means you still be the one to see the one together.

260
00:15:31,660 --> 00:15:31,880
Yeah.

261
00:15:31,880 --> 00:15:33,110
Here we have to add it.

262
00:15:33,740 --> 00:15:36,140
I feel like you to save all.

263
00:15:36,950 --> 00:15:38,420
Now let's check this out again.

264
00:15:38,780 --> 00:15:39,110
Yeah.

265
00:15:39,140 --> 00:15:40,670
You can see it's perfectly running.

266
00:15:41,120 --> 00:15:46,550
That means that it's actually I make that easier with our Puttock and now it should be only one single

267
00:15:46,550 --> 00:15:47,840
taking down one single.

268
00:15:48,170 --> 00:15:48,410
Yeah.

269
00:15:48,410 --> 00:15:50,000
I want to display our user.

270
00:15:50,210 --> 00:15:52,540
Let me switch user actually like Witchboard.

271
00:15:52,760 --> 00:15:57,080
OK, so that two of these that I actually display in our particular D to this area.

272
00:15:57,530 --> 00:16:03,920
So that is our model and that is our app model and also that is our app locking model.

273
00:16:03,920 --> 00:16:07,160
So now I want to do an actual register because of all in database.

274
00:16:07,160 --> 00:16:11,480
If you want to visible it then you have to do you have to register it in our admin.

275
00:16:11,480 --> 00:16:13,460
Right now I want to register.

276
00:16:13,580 --> 00:16:16,580
That means in our app logging if you go to our admin.

277
00:16:16,760 --> 00:16:23,660
So here I want to take both of these that we are from and from our app logging that will be app and

278
00:16:23,660 --> 00:16:27,680
then logging from our app logging, then the models.

279
00:16:28,010 --> 00:16:33,620
So from to the app logging modules I want to import so that Misener from app logging and that is our

280
00:16:33,620 --> 00:16:34,160
model.

281
00:16:34,160 --> 00:16:36,530
So from here I don't import our user profile.

282
00:16:37,310 --> 00:16:44,450
I want to use our user profile and also I want to pick out this flaw like that is the flaw user.

283
00:16:44,460 --> 00:16:48,980
So should be first of all you have to add it and also after that we have to register it.

284
00:16:48,980 --> 00:16:51,200
So I think you already remember that part.

285
00:16:51,200 --> 00:16:54,890
It will be as admin and then, you know, admin side.

286
00:16:54,890 --> 00:16:59,000
We have to register, we have to register or both of these.

287
00:16:59,000 --> 00:17:02,540
So here we have to register our user profile.

288
00:17:02,540 --> 00:17:04,850
And also another one.

289
00:17:04,850 --> 00:17:06,560
Another one will be our floor.

290
00:17:07,400 --> 00:17:08,840
So I had both of this.

291
00:17:09,080 --> 00:17:10,840
And also we have to do the same things.

292
00:17:10,850 --> 00:17:12,890
We have to do the same things for our app.

293
00:17:13,370 --> 00:17:17,480
And here I have to have this one is the post and is the like.

294
00:17:17,480 --> 00:17:17,720
Right.

295
00:17:17,720 --> 00:17:23,630
So now we have to also really started in our post and then our admin sued the admin area.

296
00:17:23,630 --> 00:17:25,070
First of all, we have to import it.

297
00:17:25,070 --> 00:17:28,790
That means from that will be our app underscore post.

298
00:17:29,150 --> 00:17:29,460
Right.

299
00:17:29,930 --> 00:17:37,610
The apples that elected the models, so from here on the ground to import our tool, this one will be

300
00:17:37,730 --> 00:17:40,730
the first one will be the post plus.

301
00:17:41,060 --> 00:17:44,510
And also there is another one I have created as a like.

302
00:17:44,520 --> 00:17:44,920
Right.

303
00:17:45,230 --> 00:17:49,430
So now I take both of this software that we have to do it.

304
00:17:49,550 --> 00:17:55,380
That means admin and then side and the register site disaster.

305
00:17:55,400 --> 00:17:59,090
And then here we have to pass our this class as a post.

306
00:17:59,480 --> 00:18:03,720
And also there is another one which will be as a like class.

307
00:18:03,720 --> 00:18:09,930
So I add that like plus so here I already started and I'm going to do I want to migrate it now if to

308
00:18:09,930 --> 00:18:12,650
at this first of all, I want to check our server.

309
00:18:13,950 --> 00:18:19,720
Yeah, everything is running well, they have Neudorf Sahnoun go to our end of the terminal here, but

310
00:18:19,770 --> 00:18:20,520
I closed it.

311
00:18:20,530 --> 00:18:22,020
I want to open a new one.

312
00:18:23,100 --> 00:18:24,390
I opened a new one.

313
00:18:24,390 --> 00:18:26,670
And here I want to run that.

314
00:18:26,820 --> 00:18:28,380
I want to make it out of this.

315
00:18:28,380 --> 00:18:31,410
I want to make this app locking this model.

316
00:18:31,410 --> 00:18:34,230
And also that is another one, as you know what Apple is, right.

317
00:18:34,530 --> 00:18:36,690
So first of all, I want to migrate our app logging.

318
00:18:37,080 --> 00:18:39,330
So if you want to migrate it, that will be the pie.

319
00:18:39,330 --> 00:18:40,770
And the man is not pie.

320
00:18:40,800 --> 00:18:43,200
And that make migration's,

321
00:18:46,260 --> 00:18:47,400
make migration's.

322
00:18:47,400 --> 00:18:53,460
And then our name, our name will be as the app Logi right into the app logging.

323
00:18:53,460 --> 00:19:00,470
That is our P and the managed by MK Migration's and that plugging so no one to do and the magnitude

324
00:19:00,590 --> 00:19:01,650
of the enter.

325
00:19:04,260 --> 00:19:09,420
Now, obviously, it's not created our this flowing that is actually our floor, so that will be created.

326
00:19:09,690 --> 00:19:16,530
And after that, I want to turn to a magnet that means the and the man is not fired and then magnet.

327
00:19:18,150 --> 00:19:22,950
So there will be as a PI menaced by the Maigret and clickers enter.

328
00:19:24,450 --> 00:19:30,210
Now, see, Snow successfully created our this flow, that means this that is a clever migration file,

329
00:19:30,210 --> 00:19:30,540
right.

330
00:19:30,780 --> 00:19:34,230
And also to do and to run our act, another one.

331
00:19:34,230 --> 00:19:39,310
That is another one as opposed to that post to the model area.

332
00:19:39,330 --> 00:19:42,690
I have also created two of these are the pools and the like.

333
00:19:42,750 --> 00:19:43,000
Right.

334
00:19:43,290 --> 00:19:43,920
So now what to do?

335
00:19:43,950 --> 00:19:46,230
I also want to make the decision to magnet.

336
00:19:46,540 --> 00:19:47,670
That will be sorry.

337
00:19:49,470 --> 00:19:50,970
So you want to migrate then?

338
00:19:51,120 --> 00:19:53,610
We have to run the same comment again as a pie.

339
00:19:53,610 --> 00:20:01,860
And the man is not pie and the make migrations OK, they have noise is actually the make migrations

340
00:20:01,860 --> 00:20:06,990
and then I want to do that is will be our app underscore post.

341
00:20:07,740 --> 00:20:08,010
Right.

342
00:20:08,070 --> 00:20:09,140
So that will be our app.

343
00:20:09,840 --> 00:20:11,820
So no I want to enter.

344
00:20:13,900 --> 00:20:19,120
Now is still perfectly clear to of this model, one is opposed to, another is alike, so no one to

345
00:20:19,120 --> 00:20:26,440
turn to migrated again and the pie and the pie and the magnet and knuckleballers enter.

346
00:20:28,720 --> 00:20:37,710
So here, consider the spelling mistake as a magnet, so by and the man is not by and magnet, so it

347
00:20:37,750 --> 00:20:39,700
will be as a magnet to enter.

348
00:20:41,210 --> 00:20:47,660
Now, Casey is not successfully created our initialise all that fun, so we successfully migrate out

349
00:20:47,670 --> 00:20:54,200
of this database table, one is our models that are posed and the likes, another one I have created

350
00:20:54,200 --> 00:20:55,590
as a user profile on the floor.

351
00:20:56,060 --> 00:20:56,660
Perfect.

352
00:20:56,690 --> 00:21:02,060
So now if you want to check it, like here, I click the save all and I'll go down to redacted to our

353
00:21:02,090 --> 00:21:05,180
admin so that I am already logging with the user.

354
00:21:05,180 --> 00:21:11,990
But I click the log out and now I'm logging without user admin so that your administration name as Amjad

355
00:21:11,990 --> 00:21:15,730
and the password you demanded for five no click is a login.

356
00:21:16,430 --> 00:21:17,640
And here you can see friend.

357
00:21:17,650 --> 00:21:24,020
Now I have created two of this class in our app Logging as a flaw and our user profile.

358
00:21:24,270 --> 00:21:24,580
Right.

359
00:21:24,980 --> 00:21:27,100
So now everything will be more clear to you.

360
00:21:27,110 --> 00:21:31,250
So that is our app logging if you go to our app logging modules.

361
00:21:31,610 --> 00:21:34,130
So I have created as a user profile underfloor.

362
00:21:34,370 --> 00:21:40,610
You can see it's showing the flaws and that our user profile and also in our post in the Post, I have

363
00:21:40,610 --> 00:21:42,010
created another two of this.

364
00:21:42,410 --> 00:21:46,460
So if you go to our outpost, I have created another tool of this table.

365
00:21:46,460 --> 00:21:48,530
One will be as opposed to another is the like.

366
00:21:48,530 --> 00:21:52,250
So you can see snowshoeing as our likes and there is our post.

367
00:21:52,610 --> 00:21:54,650
So that is our floor and the floor.

368
00:21:54,650 --> 00:22:00,610
If open that we insist consistent showing as a huge user actually follow our which is OK.

369
00:22:00,620 --> 00:22:02,500
So that is a clear floor and the flowing.

370
00:22:02,870 --> 00:22:05,450
So for the floor here I have declared that part.

371
00:22:05,450 --> 00:22:11,530
That means here, if you go now, everything will be more clear to you can see I have created that foreign

372
00:22:11,540 --> 00:22:13,000
key without user class.

373
00:22:13,010 --> 00:22:14,810
With this user, we can actually access it.

374
00:22:14,810 --> 00:22:15,110
Right.

375
00:22:15,450 --> 00:22:20,530
So you can see now perfectly getting all that user and also perfectly getting all that our user.

376
00:22:20,930 --> 00:22:25,890
And also there is another one, another one as a user profiles into the user profile, it consists of

377
00:22:25,910 --> 00:22:32,450
doing as a user profile object that to so that is our user is visible, the profile picture, the data

378
00:22:32,460 --> 00:22:35,330
database, the website, and there is a Facebook field.

379
00:22:35,330 --> 00:22:37,040
So all the field is now visible.

380
00:22:37,040 --> 00:22:37,340
Right.

381
00:22:37,760 --> 00:22:42,380
And there is also another one and that is actually another one as a one.

382
00:22:42,380 --> 00:22:48,260
So you can see I have already admitted that the user as Karzai so far the Karzai I have updated that

383
00:22:48,260 --> 00:22:53,570
the top part website and the Facebook, our everything is perfectly updated.

384
00:22:54,170 --> 00:22:54,600
Great.

385
00:22:54,620 --> 00:22:54,950
Right.

386
00:22:55,190 --> 00:22:59,090
And then also, if you go to our home, that is our likes for the likes.

387
00:22:59,310 --> 00:23:03,650
If you open it, you can see something showing create that relation with our post.

388
00:23:03,650 --> 00:23:08,180
And the user writes, which user already user post will be visible right now?

389
00:23:08,180 --> 00:23:10,500
I didn't create any post automatically.

390
00:23:10,510 --> 00:23:14,810
It'll be display all the top post and also it will be displayed all the user.

391
00:23:15,170 --> 00:23:21,320
So if you go to our likes, so that is, you know, likes I have created that relation, the post and

392
00:23:21,320 --> 00:23:28,340
the user that we switchboard's that with this user portal like our hoogervorst so automatically is to

393
00:23:28,350 --> 00:23:34,010
be getting all the data I hope is very much clear to you and also that they are post data.

394
00:23:34,430 --> 00:23:39,980
If you want to add, you can see this will be, first of all, ultimately get our auto data and then

395
00:23:39,980 --> 00:23:42,230
the images and this image caption.

396
00:23:42,230 --> 00:23:44,210
So that is our filename.

397
00:23:44,510 --> 00:23:50,600
So here you can see I added our auto images and the caption, so everything is visible.

398
00:23:51,080 --> 00:23:53,120
I hope you enjoyed it very much.

399
00:23:53,120 --> 00:23:59,330
So you successfully created all the table and also migrated and now everything is visible in our database

400
00:23:59,330 --> 00:23:59,750
area.

401
00:23:59,900 --> 00:24:02,870
So now I want to do I want to work out these post options.

402
00:24:02,870 --> 00:24:06,740
That means if this user want to add on the post, how can I add this post?

403
00:24:06,740 --> 00:24:09,860
In our next video, I will show you that things with a live example.

404
00:24:10,190 --> 00:24:11,780
So thanks for watching.

405
00:24:11,780 --> 00:24:13,640
I will see you in the next video.
