1
00:00:00,210 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:02,100 --> 00:00:06,750
In a previous video, we have created one of the application for our contact, right?

3
00:00:07,050 --> 00:00:11,250
And now in this video, I want to do I want to make our this part as a dynamic.

4
00:00:11,250 --> 00:00:13,220
So that is our contact base here.

5
00:00:13,230 --> 00:00:17,870
First of all, if you want to do that work, we have to do we have to create one of the model, right.

6
00:00:17,880 --> 00:00:19,710
That is we have to create the model class.

7
00:00:20,250 --> 00:00:21,730
So, no, simply do that work.

8
00:00:22,290 --> 00:00:24,000
So right now, that is our view.

9
00:00:24,030 --> 00:00:25,560
That means our contact view.

10
00:00:25,740 --> 00:00:27,090
That is already what is right.

11
00:00:27,150 --> 00:00:27,810
We don't need this.

12
00:00:27,810 --> 00:00:28,260
You order.

13
00:00:28,560 --> 00:00:30,030
So that is all manual.

14
00:00:30,030 --> 00:00:31,280
So that's simply remove it.

15
00:00:31,320 --> 00:00:36,450
OK, so into The View and here the contact that is our models into the models area.

16
00:00:36,450 --> 00:00:41,600
I want to do want to create one of the models seems to be just like the same that we did for our index.

17
00:00:41,610 --> 00:00:46,620
If you go to that our index model so that the index model here considered one of the class.

18
00:00:46,920 --> 00:00:49,530
So now here I want to do a digital copy it.

19
00:00:49,530 --> 00:00:54,570
So I just simply copied and now in our contact model here, I just simply passed it.

20
00:00:54,720 --> 00:00:56,460
OK, so I just simply paste it right now.

21
00:00:56,460 --> 00:00:57,180
We don't need this.

22
00:00:57,180 --> 00:00:58,140
I just simply remove it.

23
00:00:58,800 --> 00:00:59,280
Perfect.

24
00:00:59,280 --> 00:01:06,600
So now I want to do to create one of the class name and I just name it as the main contact our eye contact

25
00:01:06,600 --> 00:01:06,960
list.

26
00:01:08,160 --> 00:01:10,020
OK, just name it as the contact list.

27
00:01:10,030 --> 00:01:16,460
So this step up, one of the class I have added and which will be model and then it will be inherited

28
00:01:16,560 --> 00:01:18,000
our main model class.

29
00:01:18,000 --> 00:01:24,950
And now I want to do here I need one of the location that is the address, email and the phone.

30
00:01:24,990 --> 00:01:25,330
Right.

31
00:01:25,350 --> 00:01:35,970
So I just take one of the field as the address, OK, address and then also be the email and then also

32
00:01:35,970 --> 00:01:39,120
another one I want to take as a form that is a font.

33
00:01:39,480 --> 00:01:48,240
So our atmosphere will be as a text type that the text feels right so better that will be as a text

34
00:01:48,240 --> 00:01:53,050
field and that will be as a character field that the email will be as a character feel.

35
00:01:53,070 --> 00:01:53,330
Right.

36
00:01:53,670 --> 00:01:57,600
So TextField, I want to turn to that land will be as a standard.

37
00:01:58,050 --> 00:02:03,180
And for the email I make that will be maximum length will be as a one hundred, OK.

38
00:02:03,190 --> 00:02:08,940
And also make the things as a blank, false, blank false and a blank false and also for the form it

39
00:02:08,940 --> 00:02:10,240
will be as a character field.

40
00:02:10,500 --> 00:02:15,320
So I just simply added the character feel here, we don't need this better.

41
00:02:15,330 --> 00:02:18,600
I want to do and copied and pasted.

42
00:02:18,780 --> 00:02:20,910
OK, that means the phone with this model.

43
00:02:20,910 --> 00:02:24,450
It will be as a character fail and maximum land for the phone.

44
00:02:24,450 --> 00:02:30,300
I just added as a node 100, OK, and then blank will be as false.

45
00:02:30,630 --> 00:02:32,490
And also to the self area here.

46
00:02:32,490 --> 00:02:34,100
I want to display that email.

47
00:02:34,290 --> 00:02:37,440
That means the email field will be displayed right with the self.

48
00:02:37,440 --> 00:02:39,320
I think family will already know about it.

49
00:02:39,720 --> 00:02:41,500
So now I just simply add it.

50
00:02:41,550 --> 00:02:48,060
So now if you click on disable, so after that we have to do we have to migrate right into the migration

51
00:02:48,060 --> 00:02:50,990
area and appear on the magnet for all this contact list.

52
00:02:51,330 --> 00:02:56,250
So if you want to do that work, first of all, you have to go to your appropriate file location.

53
00:02:56,550 --> 00:03:08,190
And then I just simply added as a python and then mayonaise dot by and that make migrations, OK, that

54
00:03:08,190 --> 00:03:11,880
is a python madness dot by and migrations.

55
00:03:11,880 --> 00:03:13,800
And now if you click on the enter.

56
00:03:16,470 --> 00:03:22,590
Legacy is initialise our migration file, that is our contact, that is a contact list, and after that

57
00:03:22,590 --> 00:03:25,450
I want to do I want to migrate it right.

58
00:03:25,800 --> 00:03:28,390
So if you want to migrate, then what exactly you have to do?

59
00:03:28,410 --> 00:03:34,360
You have to write a python and then man is not pie and then migrate.

60
00:03:35,880 --> 00:03:40,410
So that is our migration, our own to do and to migrate it scientifically as if enter.

61
00:03:42,030 --> 00:03:44,920
Now you can see our migration is successfully done.

62
00:03:45,090 --> 00:03:53,520
So now if you click on the Savol now if you go to our database and now go to our home and here you can

63
00:03:53,520 --> 00:03:57,390
see it's not showing our tourbillon here because of all I didn't add it.

64
00:03:57,530 --> 00:04:01,260
That means I didn't add our this table in our which place?

65
00:04:01,260 --> 00:04:02,450
In our admin place.

66
00:04:02,460 --> 00:04:02,860
Right.

67
00:04:03,150 --> 00:04:05,010
So here we have to do we have to add it.

68
00:04:05,400 --> 00:04:11,220
So like if you go to our index had been so posted, it will be just like the same.

69
00:04:11,430 --> 00:04:18,840
So I just copied and here I have to add it and also I have to add it.

70
00:04:19,150 --> 00:04:22,450
So no, I just simply added so that we don't need this.

71
00:04:23,250 --> 00:04:26,550
So Fran, I hope you can all understand about it what exactly you have to do.

72
00:04:26,880 --> 00:04:29,190
So in the contacts, that is the same model.

73
00:04:29,200 --> 00:04:34,820
So from to the model Syria I have into the model I have created from the class name as a contact list.

74
00:04:35,130 --> 00:04:39,570
So now I just simply loaded our import our this contact list plus.

75
00:04:39,630 --> 00:04:39,990
Right.

76
00:04:40,230 --> 00:04:44,810
And also into the admin side and the register in the register area.

77
00:04:44,820 --> 00:04:47,460
We have to do we have to actually pass it as a contact list.

78
00:04:47,790 --> 00:04:48,280
Perfect.

79
00:04:48,630 --> 00:04:55,260
Now if you click on the table and now if you go outside, that means the admin click is a refresh.

80
00:04:55,590 --> 00:04:56,400
Yes.

81
00:04:56,400 --> 00:04:57,080
You can see friend.

82
00:04:57,360 --> 00:04:59,860
So now that is our application name.

83
00:04:59,880 --> 00:05:04,280
That means I have created one of the application name as a contact, and that is our table.

84
00:05:04,620 --> 00:05:05,760
That is our contact list.

85
00:05:05,880 --> 00:05:08,940
So if you don't open and click as they add new contact list.

86
00:05:09,330 --> 00:05:11,550
Yes, you can see that is our address.

87
00:05:11,880 --> 00:05:14,320
That is our email field and that is our phone.

88
00:05:14,820 --> 00:05:20,150
So not only do I want to actually update, so I like here and there.

89
00:05:20,160 --> 00:05:21,240
It will be our address.

90
00:05:21,240 --> 00:05:22,420
I just simply copied.

91
00:05:22,450 --> 00:05:23,760
So just simply pasted.

92
00:05:23,760 --> 00:05:25,620
I just make that user fast.

93
00:05:26,280 --> 00:05:28,220
Then it should be understandable.

94
00:05:28,230 --> 00:05:29,490
That is our address.

95
00:05:29,820 --> 00:05:32,460
And then I pulled one of the email addresses of support.

96
00:05:32,790 --> 00:05:33,270
Sorry,

97
00:05:36,760 --> 00:05:42,150
support at the rate is eLearning dot com.

98
00:05:43,230 --> 00:05:46,680
And then I just pulled some of the email and phone number.

99
00:05:46,720 --> 00:05:48,160
OK, that will be our phone number.

100
00:05:48,450 --> 00:05:49,970
Now I just simply save it.

101
00:05:50,340 --> 00:05:53,760
So that is data and it consists of showing our email address.

102
00:05:53,760 --> 00:05:58,640
Because of all I have already admitted that machine our self into the self here.

103
00:05:58,650 --> 00:05:59,790
I added our email.

104
00:05:59,790 --> 00:06:00,070
Right.

105
00:06:00,330 --> 00:06:02,650
So far the results are consistent, showing our email.

106
00:06:03,090 --> 00:06:05,660
So now I want to do an actual visible over this data.

107
00:06:05,940 --> 00:06:11,640
That means this address, email and the phone number I want to do and the visible lead in our place

108
00:06:11,640 --> 00:06:13,690
in our contacts that area.

109
00:06:14,310 --> 00:06:15,590
So if you want to display it.

110
00:06:15,600 --> 00:06:21,590
So here I have already loaded I have loaded out this file in our view that we will contact you.

111
00:06:21,990 --> 00:06:23,510
So that is our contact view.

112
00:06:23,730 --> 00:06:24,060
Right.

113
00:06:24,420 --> 00:06:29,280
So here we have to do we have to load it, which will be just like the same before we as I told you,

114
00:06:29,280 --> 00:06:31,120
we have already complete our main part.

115
00:06:31,500 --> 00:06:36,720
So if you go to our index and with a view area, so first of all, here you have to do we have to input

116
00:06:36,720 --> 00:06:38,650
our class that from the model.

117
00:06:38,820 --> 00:06:43,680
So for now, I just simply pasted that means from our model.

118
00:06:44,340 --> 00:06:47,060
That means from our contact and from the model.

119
00:06:47,070 --> 00:06:50,680
So from the model, I want to load our this class as a contact list.

120
00:06:51,120 --> 00:06:54,620
So now I just simply load import our this contact list.

121
00:06:54,630 --> 00:06:54,940
Right.

122
00:06:55,290 --> 00:07:01,320
So now first of all, with this, we, I want to do want to get all that our database data in our database

123
00:07:01,320 --> 00:07:01,610
here.

124
00:07:01,620 --> 00:07:03,430
I have already sat on the data.

125
00:07:03,690 --> 00:07:05,580
So now I want to get all the data.

126
00:07:05,820 --> 00:07:10,110
So if you want to get that data, just like they have only one road that I want to get.

127
00:07:10,110 --> 00:07:11,690
So that is our zero index data.

128
00:07:11,700 --> 00:07:12,000
Right.

129
00:07:12,030 --> 00:07:13,200
So now I want to do that.

130
00:07:13,200 --> 00:07:17,490
Work through will be just like the same in our index.

131
00:07:18,540 --> 00:07:20,860
That is closer to the request, the better.

132
00:07:20,880 --> 00:07:21,990
I just simply copy it.

133
00:07:22,020 --> 00:07:23,910
OK, I copy it.

134
00:07:23,910 --> 00:07:26,490
And now I'm here after this.

135
00:07:26,490 --> 00:07:27,490
I just look past it.

136
00:07:28,020 --> 00:07:31,880
So here it will be the same friend that will be as a contact list.

137
00:07:31,920 --> 00:07:34,460
I just name it as a contact list that starts right now.

138
00:07:34,470 --> 00:07:35,510
We don't need this.

139
00:07:36,090 --> 00:07:39,380
So that will be our contact list and enter the contact list.

140
00:07:39,390 --> 00:07:45,210
That is our model M, our model as a model class name and the contact list.

141
00:07:45,420 --> 00:07:48,450
And then I want to get all that our object data.

142
00:07:48,450 --> 00:07:54,420
And also here I added our resident index data because of all that have only one data that zero index

143
00:07:54,420 --> 00:07:56,580
for this index data I want to get.

144
00:07:56,670 --> 00:07:57,020
Right.

145
00:07:57,270 --> 00:08:02,850
So I just simply added our zero index and also into the context area we have to do here.

146
00:08:03,060 --> 00:08:05,440
That is our decision and the area.

147
00:08:05,850 --> 00:08:08,220
So right now they have the only one.

148
00:08:08,730 --> 00:08:12,150
OK, so I just simply take one data.

149
00:08:12,330 --> 00:08:13,920
So that will be our key.

150
00:08:13,920 --> 00:08:15,990
I name it key as a contact.

151
00:08:16,910 --> 00:08:23,090
OK, contact Maine or contact list and name it as a contact list, then it'll be better.

152
00:08:23,090 --> 00:08:26,840
And I take the things with our list contact list data.

153
00:08:26,870 --> 00:08:28,570
So now here I just simply pass it.

154
00:08:28,850 --> 00:08:34,420
And also we have to pass our discounters data because of what I get all the data and take that thing

155
00:08:34,670 --> 00:08:35,530
with this variable.

156
00:08:35,540 --> 00:08:39,750
So now we have to pass all the data in our specific this contact list.

157
00:08:39,770 --> 00:08:39,990
Right.

158
00:08:40,220 --> 00:08:44,450
So if you want to pass it here, I have already added addiction and I just take the things with these

159
00:08:44,450 --> 00:08:45,080
variables.

160
00:08:45,140 --> 00:08:47,110
Now we have to do we have to pass it.

161
00:08:47,570 --> 00:08:49,340
So now I just simply pass it.

162
00:08:49,790 --> 00:08:53,000
So I just simply pass our containers that are in our contact orders.

163
00:08:53,390 --> 00:08:55,880
So now we can actually access our contact orders.

164
00:08:55,880 --> 00:09:00,920
Temel, that means here we can access our all the data without this contact list.

165
00:09:00,920 --> 00:09:01,180
Right.

166
00:09:01,520 --> 00:09:04,190
So now I want to do that work for doing this.

167
00:09:04,190 --> 00:09:11,300
If you go to our contact, that means the contact orders, the will go to our template and then our

168
00:09:11,300 --> 00:09:12,010
contact orders.

169
00:09:12,950 --> 00:09:20,200
And here you can see that the location that is the email and that is our call.

170
00:09:20,210 --> 00:09:20,910
That means the phone.

171
00:09:21,200 --> 00:09:23,990
So now, first of all, I want to display our location.

172
00:09:24,890 --> 00:09:26,030
Let me the address.

173
00:09:26,030 --> 00:09:32,720
So with this so here, if you want the visibility, you have the visibility with our this contact list.

174
00:09:32,720 --> 00:09:32,950
Right.

175
00:09:33,530 --> 00:09:35,900
So now I want to do and do with this contact list.

176
00:09:36,230 --> 00:09:37,340
With this contact list.

177
00:09:37,340 --> 00:09:39,610
I want to do want to display our address.

178
00:09:39,620 --> 00:09:44,980
That means if you go to our model so that our full name as the address, email and the phone.

179
00:09:45,530 --> 00:09:51,520
So no, I just simply loaded our address and same as for our email.

180
00:09:52,370 --> 00:09:55,480
So that will be our email and that will be our phone.

181
00:09:56,270 --> 00:09:56,680
Right.

182
00:09:57,080 --> 00:10:00,250
Sorry, that will be our phone.

183
00:10:00,260 --> 00:10:01,600
I just simply based it.

184
00:10:02,270 --> 00:10:07,580
OK, that will be as our email and then our phone.

185
00:10:08,450 --> 00:10:13,220
That will be either email and that will be our phone.

186
00:10:13,230 --> 00:10:15,200
So simply it perfect.

187
00:10:15,410 --> 00:10:17,030
So that's all you have to do.

188
00:10:17,390 --> 00:10:20,330
So now let's check this out if you're going to disable.

189
00:10:21,080 --> 00:10:23,530
And now, first of all, I want to check our server.

190
00:10:23,960 --> 00:10:25,640
Yes, everything is running well.

191
00:10:26,360 --> 00:10:28,730
And now if you refresh it.

192
00:10:30,890 --> 00:10:36,070
Yes, you can see it's perfectly getting our address is perfectly displayed.

193
00:10:36,140 --> 00:10:42,810
Our e-mail address and also is showing our phone, I hope is very much clear to your friend.

194
00:10:43,070 --> 00:10:46,460
So now here I just make out this part as a dynamic.

195
00:10:46,460 --> 00:10:51,080
So evident actually now comes from which place comes from the WFB?

196
00:10:51,080 --> 00:10:53,930
Are the index want that index zero?

197
00:10:53,930 --> 00:10:54,450
That's right.

198
00:10:54,920 --> 00:10:57,210
So that is our index zero.

199
00:10:57,800 --> 00:11:04,820
So from here I get our index data and I just pass it to our contact on e-mail with this context.

200
00:11:04,820 --> 00:11:05,190
Right.

201
00:11:05,210 --> 00:11:08,510
So here I added addiction and the traditional area.

202
00:11:08,510 --> 00:11:11,080
I pass our key and that is our value.

203
00:11:11,090 --> 00:11:15,890
So our value is I get all the other object that to take the things with this variable and I just pass

204
00:11:15,890 --> 00:11:16,040
it.

205
00:11:16,340 --> 00:11:20,710
So now we can if you want to display it, you can display with our D contacts list.

206
00:11:21,140 --> 00:11:23,580
So right now you can see it is a contact list.

207
00:11:23,600 --> 00:11:30,800
So here I just simply pass our contact list, address our field name, email and phone I hope is very

208
00:11:30,800 --> 00:11:31,730
much clear to friend.

209
00:11:31,760 --> 00:11:33,900
And now we can successfully did that work.

210
00:11:34,400 --> 00:11:39,830
So, you know, next video I want to do, want to insert the data from our list from OK, how can insert

211
00:11:39,830 --> 00:11:41,770
this data in the next video?

212
00:11:41,780 --> 00:11:43,940
I will show that things with a live example.

213
00:11:44,480 --> 00:11:47,930
So thanks for watching and I will see you in the next video.
