1
00:00:00,180 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:01,950 --> 00:00:07,530
In a previous video, we successfully display all the terror flowing, you are all that polls, right?

3
00:00:07,530 --> 00:00:10,620
And also here I display our discontent with the details.

4
00:00:10,980 --> 00:00:17,910
So now in this video I want to discuss about here, I want to to add on the option for the like or dislike

5
00:00:17,910 --> 00:00:18,540
this post.

6
00:00:18,930 --> 00:00:22,270
So it'll be just like our blog project into the blog post.

7
00:00:22,350 --> 00:00:24,480
I have already discussed about that things with you.

8
00:00:24,780 --> 00:00:30,140
So now I want to do want to apply the same things again in our social media project.

9
00:00:30,150 --> 00:00:32,880
So if you want to do that work, first of all, you have to do we have to work.

10
00:00:32,880 --> 00:00:36,360
In our view, that means you have to create two of these functions.

11
00:00:36,360 --> 00:00:39,570
One would be as a like another will be as unlike.

12
00:00:39,570 --> 00:00:39,840
Right.

13
00:00:40,380 --> 00:00:43,030
So that is our home.

14
00:00:43,080 --> 00:00:48,210
That means if you go to our app, that means our app post, and that is are opposing views.

15
00:00:48,600 --> 00:00:51,280
And here, first of all, I want to the creation of the function.

16
00:00:51,410 --> 00:00:56,880
OK, so before that function, I want to remember that things we do, like if you go to the airport

17
00:00:56,880 --> 00:01:02,190
and if you go to our airport in the models, you the model area, I have already created one of the

18
00:01:02,190 --> 00:01:08,250
class, as I like right now with this, like I have already created the deletion outpost and I have

19
00:01:08,250 --> 00:01:13,590
created the one of the following declared the front without pause and also for the user I have created

20
00:01:13,590 --> 00:01:15,680
on the foreign GI with our user class.

21
00:01:15,720 --> 00:01:16,100
Right.

22
00:01:16,380 --> 00:01:18,840
So now we have to do first of all, we have to get it.

23
00:01:18,840 --> 00:01:20,790
That means we have to take out this class.

24
00:01:20,790 --> 00:01:22,500
So that is opposed.

25
00:01:23,010 --> 00:01:26,030
If you go to our home view, that means that is our home view.

26
00:01:26,370 --> 00:01:28,010
So here, first of all, we have to add it.

27
00:01:28,020 --> 00:01:30,370
So that is in our app model.

28
00:01:30,390 --> 00:01:32,250
So I have already put that post.

29
00:01:32,370 --> 00:01:36,330
Now, after that, I want to do and input another one that will be as a like.

30
00:01:36,460 --> 00:01:36,830
Right.

31
00:01:37,140 --> 00:01:39,450
That is our opposed and from the model.

32
00:01:39,450 --> 00:01:40,440
So from the model.

33
00:01:40,440 --> 00:01:41,810
I want to get out this class.

34
00:01:41,820 --> 00:01:44,060
So now I load out this class.

35
00:01:44,490 --> 00:01:49,860
So after that I want to create one of the function that means this function also be required.

36
00:01:49,860 --> 00:01:51,240
That means blocking the grade.

37
00:01:51,330 --> 00:01:53,040
I make it as a logging vehicle.

38
00:01:53,340 --> 00:01:56,370
And after that, after that, I name the function.

39
00:01:56,370 --> 00:02:01,860
If you at that function, I name it as a like OK name doesn't like the function.

40
00:02:02,130 --> 00:02:07,740
And also here we have to pass that request and also here we have to pass our idea because of all every

41
00:02:07,740 --> 00:02:10,110
polls that have individuals that have the ID.

42
00:02:10,110 --> 00:02:12,090
Right, that is actually one of the ID.

43
00:02:12,450 --> 00:02:18,270
That is our worst idea because we have to like it with a specific one of this idea post.

44
00:02:18,780 --> 00:02:25,210
So for doing this, I want to do to add another parameter and I just take the parameter as ID RPK that

45
00:02:25,230 --> 00:02:26,250
is the primary key.

46
00:02:26,940 --> 00:02:32,220
And sorry I added that our ID and then I take one of the variable as post.

47
00:02:32,490 --> 00:02:35,480
First of all, we have to do have to get all that our that data right.

48
00:02:35,490 --> 00:02:42,030
So now I don't want to get our post and with this post class I want to get that objects and then I want

49
00:02:42,030 --> 00:02:43,730
to get I want to get our whois that.

50
00:02:43,760 --> 00:02:50,160
I want to get our specific idea that that means in our database, if you go to our disk, that is actually

51
00:02:50,160 --> 00:02:50,810
one of the table.

52
00:02:50,820 --> 00:02:53,820
That's for this table to have one of the ID.

53
00:02:53,820 --> 00:02:56,800
So that is a beautiful idea actually created by this Django.

54
00:02:57,090 --> 00:03:02,220
So now I want to do to take that idea as a picture so you will be matched with our which one each will

55
00:03:02,220 --> 00:03:05,040
be matched with our D requested our ID.

56
00:03:05,040 --> 00:03:05,410
Right.

57
00:03:05,430 --> 00:03:10,860
So I wanted one to match it without this requested I.D. So that will be our primary key.

58
00:03:11,100 --> 00:03:14,520
And after that I want to take another variable as I already like.

59
00:03:15,180 --> 00:03:23,730
OK, already already underscore like so this type of one of the parameter and here I want to do I want

60
00:03:23,730 --> 00:03:25,680
to with our life model.

61
00:03:25,920 --> 00:03:29,550
I have already lowered our diskless right.

62
00:03:29,550 --> 00:03:30,450
There is a like class.

63
00:03:30,780 --> 00:03:36,660
So with this like class, I don't want to get our I want to filter it, I want to filter it our appropriate

64
00:03:36,660 --> 00:03:37,140
post.

65
00:03:37,140 --> 00:03:39,060
And also I have to compare our user.

66
00:03:39,060 --> 00:03:39,450
Right.

67
00:03:39,450 --> 00:03:42,230
Because of all there is a class post under the user.

68
00:03:42,240 --> 00:03:45,380
So now we have to combine both of these steps here.

69
00:03:45,720 --> 00:03:53,580
So with this like I want to do to get our objects, objects, and then I want to filter out the filter.

70
00:03:53,610 --> 00:03:57,360
I want to filter with what I want to filter without this post.

71
00:03:57,520 --> 00:03:58,830
That means this post.

72
00:03:59,580 --> 00:04:03,270
So this post will be matched with our D appropriate ID.

73
00:04:03,450 --> 00:04:07,020
I would the idea I get it and take the things with this variable.

74
00:04:07,290 --> 00:04:08,520
It should be matched with this.

75
00:04:08,730 --> 00:04:09,050
Right.

76
00:04:09,560 --> 00:04:11,490
And also we need another one.

77
00:04:11,490 --> 00:04:18,260
I have another field as a user and this user will be what this user will be our current user.

78
00:04:18,510 --> 00:04:19,830
That is our current user.

79
00:04:19,830 --> 00:04:24,030
If you want to declare it, I hope you remember it is as a request user, right?

80
00:04:24,330 --> 00:04:27,000
That is our request user will be our current user.

81
00:04:27,450 --> 00:04:27,960
Perfect.

82
00:04:27,960 --> 00:04:32,970
So here I match both of these and I take the things with our this variable as they already liked.

83
00:04:33,420 --> 00:04:35,760
So now after that I want to do want to check it.

84
00:04:35,760 --> 00:04:41,160
That means I want to put on the condition if not already like that means this already.

85
00:04:41,160 --> 00:04:41,850
Like sorry.

86
00:04:42,960 --> 00:04:45,150
That mean this one if not already.

87
00:04:45,150 --> 00:04:47,820
Like then what exactly is to be do then.

88
00:04:47,820 --> 00:04:48,390
It be.

89
00:04:48,390 --> 00:04:55,440
Actually I take another one, I take another variable as I liked, like I light like post and with this

90
00:04:55,440 --> 00:04:59,760
like post I want to do with the like the position with just like the same.

91
00:05:00,140 --> 00:05:07,700
With our lightless, I want to again take it that we set up our DNA, our post will be with our same

92
00:05:07,700 --> 00:05:08,510
as a post.

93
00:05:09,020 --> 00:05:09,410
Right.

94
00:05:09,410 --> 00:05:14,250
And also our user user will be our request to do that.

95
00:05:14,270 --> 00:05:17,750
That means our current user occupant.

96
00:05:17,790 --> 00:05:21,580
So it'll be just like the same condition to this post, as I told you.

97
00:05:22,010 --> 00:05:27,860
So there is a to fill in the post and the user search will be matched over this appropriate requested

98
00:05:27,860 --> 00:05:32,780
ID user post and also our user will be our current user that ensued.

99
00:05:32,780 --> 00:05:39,510
User is already logged in and after that, when it's natural to want to save it, that will save our

100
00:05:39,510 --> 00:05:45,880
dislike like post and to save this data perfect and wonderful, we save and return.

101
00:05:46,100 --> 00:05:53,180
That means here in our if condition here to return and return with our EDP response.

102
00:05:54,650 --> 00:06:00,350
Make sure you add that EDP response to direct a considerate response.

103
00:06:00,420 --> 00:06:03,290
Also, I don't want to take our EDP response to that.

104
00:06:03,470 --> 00:06:04,670
We did that work.

105
00:06:04,670 --> 00:06:10,340
If we go to our again view, it considers a glorious GDP response redirects and I wanted to use it.

106
00:06:10,700 --> 00:06:16,580
So here I add our EDP responses and also I need another one.

107
00:06:17,000 --> 00:06:20,270
I needed another one that will be as our diversity.

108
00:06:20,270 --> 00:06:20,720
We need it.

109
00:06:20,720 --> 00:06:21,050
Right.

110
00:06:21,260 --> 00:06:23,180
So that is a reverse.

111
00:06:23,180 --> 00:06:25,810
That is, you are an important resource also.

112
00:06:25,820 --> 00:06:26,710
You have to add it.

113
00:06:27,230 --> 00:06:33,070
So make sure you add that SCDP response, reverse redirect and also to take our reverse.

114
00:06:33,080 --> 00:06:41,600
That is in our from that is from Django and then the Waddle's and from here on the input on the input

115
00:06:41,600 --> 00:06:42,380
that reverse.

116
00:06:43,640 --> 00:06:45,170
OK, that means that the reverse.

117
00:06:45,180 --> 00:06:45,530
Right.

118
00:06:45,540 --> 00:06:47,570
So now what to do on Texas, both of this.

119
00:06:48,020 --> 00:06:49,550
So we this has to response.

120
00:06:49,550 --> 00:06:55,250
I want to extend our this one that means here it should be as a response to that.

121
00:06:55,490 --> 00:06:57,920
And here I want to do the parser diverse.

122
00:06:58,280 --> 00:07:01,940
And with this reverse, I want to pass it to our sampas.

123
00:07:01,940 --> 00:07:06,710
I want to want it to be like after that, like it to be the same home base.

124
00:07:07,040 --> 00:07:10,010
So for the home, I have already created one of the equal.

125
00:07:10,400 --> 00:07:16,420
If you go to our menu URL, you can say name it as a home right now and to do and to pass it.

126
00:07:16,760 --> 00:07:23,030
So here is to be elected to our home, I hope is very much clear to friend what exactly the things I

127
00:07:23,030 --> 00:07:24,470
did for our lightpost.

128
00:07:24,740 --> 00:07:26,420
So now we have to do the same things.

129
00:07:26,420 --> 00:07:30,760
I have to create another function for our unlike Israel would just like that same.

130
00:07:31,340 --> 00:07:35,330
So if you already understand that condition, I think you should not be worried about it.

131
00:07:35,330 --> 00:07:37,100
So that will be our other condition.

132
00:07:37,100 --> 00:07:41,240
I name it as the I'm like, OK, name.

133
00:07:41,240 --> 00:07:44,060
It is unlikely it should be the trickiest.

134
00:07:44,060 --> 00:07:50,300
And also here we have to pass our the parameter as a primary key and then I want to do and to take on

135
00:07:50,390 --> 00:07:54,500
the variable as the post and post will be without post model.

136
00:07:55,010 --> 00:07:56,000
With our post model.

137
00:07:56,000 --> 00:08:02,150
I want to get that objects, our objects will be get it should be match with our ID.

138
00:08:02,240 --> 00:08:07,920
That means our field ID database will that it became that America will be match with our district requested

139
00:08:07,940 --> 00:08:08,630
by key.

140
00:08:09,080 --> 00:08:10,880
So here I pass it right.

141
00:08:10,880 --> 00:08:12,620
And I just take the things with this variable.

142
00:08:12,890 --> 00:08:15,470
So no we have to do, we have to take another variable.

143
00:08:15,470 --> 00:08:19,640
I take another variable that already liked and here with the likes class.

144
00:08:20,090 --> 00:08:26,420
I want to do want to get that object object to another then I want to filter it on the filter.

145
00:08:26,420 --> 00:08:27,100
On the filter.

146
00:08:27,120 --> 00:08:28,520
It will be as a post.

147
00:08:28,610 --> 00:08:34,550
Our post will be our and this is the post that will take the things with this variable.

148
00:08:34,760 --> 00:08:35,180
Right.

149
00:08:35,180 --> 00:08:38,840
And also our user and user will be our current user.

150
00:08:38,840 --> 00:08:41,560
That means our requested user, Redfearn.

151
00:08:42,130 --> 00:08:48,350
So I hope it's very muscular too, because of, you know, like if you go to our room like that Missier,

152
00:08:48,350 --> 00:08:50,870
you can see that the two are the post and the user.

153
00:08:51,110 --> 00:08:55,970
So this post will be our D appropriate current and it should be matched.

154
00:08:55,970 --> 00:09:00,350
That means when it will be matched with our distinguished Dyle, then I take that into this variable

155
00:09:00,350 --> 00:09:01,430
and here I match it.

156
00:09:01,430 --> 00:09:01,700
Right.

157
00:09:01,700 --> 00:09:02,900
And then our user.

158
00:09:03,230 --> 00:09:05,210
That means so our this user.

159
00:09:05,330 --> 00:09:05,670
Right.

160
00:09:05,720 --> 00:09:07,970
This user will be our current user.

161
00:09:07,970 --> 00:09:13,970
That means our user is already logged in softer that before I save it's annoying to do and actually

162
00:09:13,990 --> 00:09:14,470
deflected.

163
00:09:14,780 --> 00:09:18,260
OK, that means when you unlock it automatically so we make it as a clean.

164
00:09:18,500 --> 00:09:20,750
That means I want to direct our previous record data.

165
00:09:21,110 --> 00:09:24,440
So with this already already like I want to do it.

166
00:09:25,250 --> 00:09:26,810
So that is a direct method.

167
00:09:26,810 --> 00:09:34,810
I declare it and after that I want to return, return and then with our EDP that so it to be responsive,

168
00:09:34,820 --> 00:09:41,120
direct here I want to do in the past with the reverse and then it should be redirected to our home.

169
00:09:41,240 --> 00:09:42,880
Right, same as a home base.

170
00:09:43,220 --> 00:09:46,130
So now we have to do have to create a both of this that we have to create.

171
00:09:46,130 --> 00:09:50,090
But this is what that means in are opposed.

172
00:09:50,090 --> 00:09:54,400
If you go to our Apostille or else here I want to do and to create a tool of this you order.

173
00:09:55,010 --> 00:09:58,760
So first of all, it will be I name it as a Leicht.

174
00:09:59,840 --> 00:10:05,750
I like and also after that like that, I have one of the parameters have declared their perimeter is

175
00:10:05,750 --> 00:10:07,780
a picture that means the primary right here.

176
00:10:07,790 --> 00:10:10,090
Also, we have to do we have to add our speaker.

177
00:10:10,670 --> 00:10:10,930
Right.

178
00:10:11,420 --> 00:10:13,250
So make sure you add that idea.

179
00:10:13,250 --> 00:10:19,130
And then in our view into the video, I have created all the function name as I liked switch will be

180
00:10:19,130 --> 00:10:21,460
as a light and also named as a light.

181
00:10:21,470 --> 00:10:24,350
And also I have to take another one for I like.

182
00:10:25,010 --> 00:10:29,470
So it will be as I'm like, OK, I'll be as I liked.

183
00:10:29,810 --> 00:10:32,870
And then also they'll have one of the primary key.

184
00:10:32,870 --> 00:10:36,860
And then in our view, that is our primary primary key.

185
00:10:36,860 --> 00:10:42,350
And then our view I have created one of the function name as I like, so it shall be as unliked and

186
00:10:42,350 --> 00:10:43,750
I name it as a unelect.

187
00:10:44,120 --> 00:10:49,630
So now I want to do I want to add one of the icons that means here I want to add on the icon.

188
00:10:49,640 --> 00:10:53,840
I guess if you want to add that icon, I have already added our farfalle.

189
00:10:53,900 --> 00:10:58,910
Like if you go to our business jemal that is our basis.

190
00:10:58,910 --> 00:11:07,400
HTML like first of all, our home in our home, I have loaded what I have read that neverthought assimilate.

191
00:11:07,760 --> 00:11:11,330
So now that is our neighbor, so do the neighbor area.

192
00:11:13,580 --> 00:11:13,940
Yes.

193
00:11:13,940 --> 00:11:18,980
You can see I have already include our eye contact in the form of some icon.

194
00:11:19,370 --> 00:11:20,620
So now we can actually use it.

195
00:11:20,630 --> 00:11:22,310
Our phone does some all the class.

196
00:11:22,310 --> 00:11:22,570
Right.

197
00:11:22,570 --> 00:11:28,430
So now I want to do that work so that no, I don't need this and go to our home and the home.

198
00:11:29,150 --> 00:11:30,560
That is our profile.

199
00:11:31,070 --> 00:11:32,990
That is our caption.

200
00:11:33,320 --> 00:11:37,490
So after that caption, OK, after that caption, that means our post caption.

201
00:11:37,490 --> 00:11:38,900
So that is a post caption.

202
00:11:38,900 --> 00:11:41,990
After that, I want to do want to add one of the class.

203
00:11:42,440 --> 00:11:44,090
So that means I have a class.

204
00:11:44,090 --> 00:11:45,800
So that is our I sorry.

205
00:11:46,910 --> 00:11:47,780
That will be his.

206
00:11:47,780 --> 00:11:58,100
I write I and the idea I want to put on the class so our class will be as a fa fa I want to want to

207
00:11:58,220 --> 00:12:02,480
use our hard work hard and I want to use it hard.

208
00:12:02,840 --> 00:12:10,760
And also I want to add another one and another one is be as a fa fa hard or that is empty.

209
00:12:11,390 --> 00:12:14,240
OK, that means this will be another class as or so.

210
00:12:14,240 --> 00:12:18,120
If you start with the font or some icon you will get this type of on the class.

211
00:12:18,120 --> 00:12:22,880
So I want to use it as a fa fa icon and then fa fa heart and as a zero.

212
00:12:23,010 --> 00:12:25,070
OK, so now let's check this out.

213
00:12:25,070 --> 00:12:30,700
If as I say well first of all, to check it, everything is on display or not because refresh.

214
00:12:31,520 --> 00:12:32,180
Yes.

215
00:12:32,180 --> 00:12:34,730
Now can see snow perfectly getting our FA icons.

216
00:12:34,730 --> 00:12:38,630
So that is our fa fa hard and that is our fa fa hard or perfect.

217
00:12:39,050 --> 00:12:44,630
So it's pretty simple, very small size, but I want to try to increase this size.

218
00:12:45,050 --> 00:12:51,260
So if you want to increase this size like here, here on the bottom of this table, OK, put one of

219
00:12:51,260 --> 00:12:55,760
these style and I want to do want to add on to the font, OK, font size.

220
00:12:56,300 --> 00:13:02,060
I make that font size as a thirty six, I make it as a thirty six pixel.

221
00:13:02,990 --> 00:13:10,460
And now let's check this out and also want to add the same for our or locally as the Savol.

222
00:13:10,760 --> 00:13:13,160
And now if you refresh it.

223
00:13:13,850 --> 00:13:16,280
Yes, you can see it's pretty much better.

224
00:13:16,280 --> 00:13:18,290
Right, you can see this pretty much better.

225
00:13:18,290 --> 00:13:20,750
So here actually now displayed both of this.

226
00:13:21,020 --> 00:13:26,330
So I want to put on the condition and with this condition, when it'll be the light, then it be as

227
00:13:26,330 --> 00:13:29,960
our second only visible that means are far, far harder will be visible.

228
00:13:30,230 --> 00:13:34,640
And when it will be as I unlike then fa fa fa or will be visible.

229
00:13:34,790 --> 00:13:35,690
So we can do that.

230
00:13:35,690 --> 00:13:37,790
OK, I show you for doing this here.

231
00:13:38,270 --> 00:13:40,100
So before display this condition.

232
00:13:40,100 --> 00:13:43,080
First of all we have to get appropriate data.

233
00:13:43,100 --> 00:13:46,220
That means which user already liked our which post.

234
00:13:46,220 --> 00:13:46,460
Right.

235
00:13:46,460 --> 00:13:48,530
So here also we have to get this data.

236
00:13:48,920 --> 00:13:55,640
So that's the home that actually comes from our view and the view you can see that is our home, right.

237
00:13:55,640 --> 00:13:58,720
That means in our app that means Apple.

238
00:13:58,730 --> 00:14:03,290
There are views that our home function and indeed the home function area here.

239
00:14:03,290 --> 00:14:08,390
We have to declare some of the things like, first of all, I show you, then everything will be more

240
00:14:08,390 --> 00:14:09,020
clear to you.

241
00:14:09,020 --> 00:14:11,330
Like here I take one of the variable as the light.

242
00:14:11,810 --> 00:14:16,940
Sorry, here I take one of the variable as I liked and disliked.

243
00:14:16,940 --> 00:14:23,990
I name it like both, OK, we dislike most and we don't like that because I like class and we dislike

244
00:14:23,990 --> 00:14:29,590
classes to besame our I get our objects and I want to filter it ok.

245
00:14:29,630 --> 00:14:32,450
I want to filter it and filter it with our user.

246
00:14:32,450 --> 00:14:34,160
Our user will be which one.

247
00:14:34,190 --> 00:14:36,950
Our user will be our request to do that.

248
00:14:36,950 --> 00:14:38,210
That means our current user.

249
00:14:38,720 --> 00:14:39,920
So that will be sorry.

250
00:14:39,950 --> 00:14:41,660
That will be our current user.

251
00:14:41,690 --> 00:14:42,050
Right.

252
00:14:42,260 --> 00:14:47,090
And then I want to do, I want to actually find out our tissues that that means this current user,

253
00:14:47,090 --> 00:14:50,750
like our which posts here, also have to get that information.

254
00:14:51,080 --> 00:14:56,570
So far, the results I take another variable are the liked, OK, I name it as a liked and.

255
00:14:56,810 --> 00:14:57,390
Mm.

256
00:14:57,390 --> 00:14:59,660
I liked post and the list I.

257
00:14:59,800 --> 00:15:06,990
To show all that, at least so with this, I want to do with a light that means we don't like fools,

258
00:15:07,330 --> 00:15:11,230
I take our this I can't use a double take the things with this variable.

259
00:15:11,240 --> 00:15:15,760
So with this, like post I want to do I want to add another function as a value list.

260
00:15:15,790 --> 00:15:20,170
OK, so with this value list, we will get our list appropriate information.

261
00:15:20,590 --> 00:15:22,150
So now I name it as a value list.

262
00:15:22,160 --> 00:15:28,900
So with this value list, I want to show our all the things I want to show all the tower post.

263
00:15:29,020 --> 00:15:30,940
That means this after all the post.

264
00:15:30,940 --> 00:15:31,210
Right.

265
00:15:31,540 --> 00:15:31,940
So now no.

266
00:15:31,940 --> 00:15:37,720
And to do want to add that our relation name as a post and also to do and to make that as a float through

267
00:15:38,440 --> 00:15:45,510
like a flat sorry flat will be as a true Silvy as a true perfect.

268
00:15:46,060 --> 00:15:52,410
So here I take that or at least all the data and take the things with this variable as a like post that.

269
00:15:52,420 --> 00:15:57,940
As for now, with this like post list, we get our appropriate which are actually like our hoogervorst.

270
00:15:57,940 --> 00:15:58,220
Right.

271
00:15:58,540 --> 00:16:00,250
So now I have to do I have to actually pass it.

272
00:16:00,250 --> 00:16:01,630
I have to pass it in our home.

273
00:16:01,630 --> 00:16:02,650
That is Tamalpais.

274
00:16:03,070 --> 00:16:10,180
So now in our home dot after that post, after that post, I wanted to take another one which will be

275
00:16:10,180 --> 00:16:11,320
easier like post.

276
00:16:11,680 --> 00:16:14,140
And here I passed it in our dictionary area.

277
00:16:14,140 --> 00:16:17,620
So now we can actually use it, we can use it in our home base.

278
00:16:17,620 --> 00:16:19,290
That means our home got a stable base.

279
00:16:19,600 --> 00:16:22,220
So now go to our home address still here.

280
00:16:22,660 --> 00:16:25,240
So first of all, I don't want to put on the condition.

281
00:16:25,250 --> 00:16:32,200
OK, so here I want to I take one of the if condition that we leave our right now.

282
00:16:32,200 --> 00:16:33,880
I'm already in our for loop.

283
00:16:33,880 --> 00:16:34,210
Right.

284
00:16:34,850 --> 00:16:36,780
Uh, that is our follow.

285
00:16:36,800 --> 00:16:42,910
So I get all the data we Darfor and also that have one of the primary keys or else we have to declare

286
00:16:42,910 --> 00:16:43,050
it.

287
00:16:43,060 --> 00:16:49,380
That means if OK, here, we have to write those E post as our picture with this speaker.

288
00:16:49,390 --> 00:16:56,500
I want to in I want to in our what from our view, I have already passed over like all that user data

289
00:16:56,710 --> 00:16:59,050
and I just pass it with our D variable.

290
00:16:59,050 --> 00:17:03,220
That means there is a clause like post-flight that is a like post list.

291
00:17:03,580 --> 00:17:05,140
So now on to do on the added.

292
00:17:05,140 --> 00:17:07,080
So that will be our like post list.

293
00:17:07,480 --> 00:17:10,300
So with this we can actually distinguish that part.

294
00:17:10,300 --> 00:17:18,970
And also I take out there as ls that means used to be as ls ls is still we display another one and after

295
00:17:18,970 --> 00:17:20,740
that I want to learn to finish it.

296
00:17:21,340 --> 00:17:25,430
That means or and if I need everything will be much clearer to you.

297
00:17:25,450 --> 00:17:31,840
So initial B as in this post that means if or this ID is already like there will be display one.

298
00:17:32,020 --> 00:17:38,830
OK then if we display this one right then L2 still will display this one that there is a two condition,

299
00:17:38,830 --> 00:17:39,590
AB declared.

300
00:17:40,060 --> 00:17:46,990
So now if you click on the Savol because to save all the result, Dave, I protect you.

301
00:17:47,020 --> 00:17:48,300
The save all again.

302
00:17:48,790 --> 00:17:50,710
And now if you refresh it.

303
00:17:50,890 --> 00:17:51,400
Yes.

304
00:17:51,400 --> 00:17:53,710
Now go see that now is actually showing our one.

305
00:17:54,190 --> 00:17:55,840
That means only one is visible.

306
00:17:55,840 --> 00:17:56,090
Right.

307
00:17:56,350 --> 00:17:58,390
So here I have to put that condition.

308
00:17:58,390 --> 00:18:03,190
If this user already liked it then it should be displayed our ferhat else.

309
00:18:03,280 --> 00:18:09,480
Shall we display our four zero now can see I didn't like this post but the is now showing the empty.

310
00:18:09,490 --> 00:18:10,950
That means our fa fa hard.

311
00:18:10,990 --> 00:18:11,980
All right.

312
00:18:12,340 --> 00:18:19,510
So now to turn to put on the head if that means here on, to add on what they had if a hatif and into

313
00:18:19,510 --> 00:18:22,900
the Ahari Fadia I want to pass out this icon.

314
00:18:23,530 --> 00:18:24,470
I got it.

315
00:18:24,490 --> 00:18:26,560
And here I pasted it.

316
00:18:26,560 --> 00:18:32,710
OK, and also I want to add another Arief and also appear to have to finish it.

317
00:18:32,980 --> 00:18:35,740
So I just put some of the link on here.

318
00:18:36,070 --> 00:18:37,660
So I have already created two of this.

319
00:18:38,080 --> 00:18:41,620
I have created the people in our post and the like and the and like.

320
00:18:41,620 --> 00:18:43,900
So now to do an actual round both of these.

321
00:18:44,200 --> 00:18:47,340
So that will be in our attempts that means here.

322
00:18:48,220 --> 00:18:52,890
So I call that our all that will be as if you are ill.

323
00:18:52,900 --> 00:18:57,880
And with this you are a little first of all, I don't want to load our apt name, our apt name, as

324
00:18:57,880 --> 00:18:59,800
opposed to with this post.

325
00:18:59,800 --> 00:19:06,670
I want to access our first of all, this will be as if I had that first of a little bit, unlike that

326
00:19:06,670 --> 00:19:09,130
means here that is are like function.

327
00:19:09,700 --> 00:19:12,460
I wrote name I want to do and declare it OK.

328
00:19:12,640 --> 00:19:19,000
And also after that they have one of the ID also after that they have the ID as a paramedic e and also

329
00:19:19,000 --> 00:19:23,310
you can say I've added this our ID, so now I'm do to add this idea.

330
00:19:23,360 --> 00:19:29,980
So I will be, I name it as a picture and PCA will be our this post primary key.

331
00:19:30,130 --> 00:19:32,290
OK, it'll be our this post Primerica.

332
00:19:32,650 --> 00:19:37,560
So this is our, our the clarity that we have declared that things with the primary key.

333
00:19:37,900 --> 00:19:44,110
So now this, our primary queue will be our this post ID, so that is are disposal ID.

334
00:19:44,500 --> 00:19:50,740
So now I have to do the same things I copied and here I based it so it'll be our light.

335
00:19:51,310 --> 00:19:53,890
That means I have created it as a light.

336
00:19:54,010 --> 00:19:57,430
So now I copied and here I put it.

337
00:19:57,430 --> 00:19:59,440
So this will be our post and like.

338
00:19:59,690 --> 00:20:07,240
Pay Primerica will be our posters, primary key and then automatic release of the updated perfect's,

339
00:20:07,250 --> 00:20:10,790
I have already created all that function right in our view.

340
00:20:10,820 --> 00:20:12,560
I have created that like function.

341
00:20:12,560 --> 00:20:17,930
And the result of that as a function to the viewer idea, I have already created both of this.

342
00:20:17,950 --> 00:20:22,920
So there is a light function and it is are like function software and that's all you have to do.

343
00:20:23,060 --> 00:20:24,340
Now let's check this out.

344
00:20:24,350 --> 00:20:28,310
If everything OK now, it should be work if you're not as a sea.

345
00:20:29,450 --> 00:20:31,600
And now, first of all, I want to check our server.

346
00:20:32,330 --> 00:20:32,690
Yes.

347
00:20:32,840 --> 00:20:34,190
Very specifically running.

348
00:20:34,200 --> 00:20:36,350
And now I refresh it.

349
00:20:38,610 --> 00:20:42,380
So right now, you can see there are all the posts and there is a blank, right?

350
00:20:42,390 --> 00:20:48,800
I didn't like this post anymore and that is of the post and that is all the post is unliked.

351
00:20:49,140 --> 00:20:55,450
So now I don't to like this post like there is or I'm outside outside the box and I do like this post

352
00:20:55,480 --> 00:20:57,250
just like the Instagram.

353
00:20:57,770 --> 00:20:58,740
Yes.

354
00:20:58,740 --> 00:21:04,230
You can see friend now I have already like this post and for the results you can see it's not selected.

355
00:21:04,500 --> 00:21:06,470
And also I like this post.

356
00:21:07,170 --> 00:21:07,710
Yes.

357
00:21:07,710 --> 00:21:10,560
You can see is also siliceous if you like it.

358
00:21:11,520 --> 00:21:14,280
And I go here you can see again it's changed so far.

359
00:21:14,280 --> 00:21:16,200
The results here have declared that part.

360
00:21:16,500 --> 00:21:21,240
That is one should be unliked, one should be on like then it should be automatically deflected.

361
00:21:21,240 --> 00:21:23,250
Our already liked all that post.

362
00:21:23,310 --> 00:21:23,750
Right.

363
00:21:23,760 --> 00:21:26,580
So now this is not elected and make things as empty.

364
00:21:27,180 --> 00:21:29,220
So perfect if you like it.

365
00:21:29,580 --> 00:21:30,030
Yes.

366
00:21:30,030 --> 00:21:33,870
It's like if they liked and now it's perfectly light.

367
00:21:34,290 --> 00:21:35,790
So I hope you enjoy it.

368
00:21:35,790 --> 00:21:36,470
Very much so.

369
00:21:36,480 --> 00:21:41,610
Now from here you can display your all that appropriate flowing user, all that post.

370
00:21:41,820 --> 00:21:45,540
And also now you can like this post and I like this post.

371
00:21:45,690 --> 00:21:46,140
Right.

372
00:21:46,260 --> 00:21:48,090
I hope you enjoy it very much so.

373
00:21:48,090 --> 00:21:50,250
Now we have to do you have to actually pack this.

374
00:21:50,250 --> 00:21:54,810
OK, you have to back to Sweden when you pack this, you will if you get any issues, if you face any

375
00:21:54,810 --> 00:21:56,940
problem, just let me know about it.

376
00:21:56,940 --> 00:21:58,500
I will be always in touch.

377
00:21:58,950 --> 00:22:02,280
So thanks for watching and I will see you in the next video.
