1
00:00:00,150 --> 00:00:01,650
Hello, friend, welcome back.

2
00:00:02,130 --> 00:00:07,890
In a previous video I have already discussed about that, things we do, how can create all the models

3
00:00:07,890 --> 00:00:10,260
and also after that we migrated.

4
00:00:10,590 --> 00:00:15,270
That means we have already created all the database and into this database we have created two of these

5
00:00:15,270 --> 00:00:15,750
are the best.

6
00:00:16,140 --> 00:00:17,340
One is our model.

7
00:00:17,340 --> 00:00:18,630
Another is our album.

8
00:00:18,630 --> 00:00:19,020
Right.

9
00:00:19,230 --> 00:00:23,160
And also into this musician, Debbie, I have defined three of this field.

10
00:00:23,160 --> 00:00:26,450
One will be as a first name, last name and the instrument.

11
00:00:26,610 --> 00:00:31,110
So now I want to do and in fact, some of the data in particular this all that field.

12
00:00:31,260 --> 00:00:34,590
So if you want to insert it, you have been studied by the object.

13
00:00:34,590 --> 00:00:39,930
That means when any data will be inserted into this database, all the field, it will be inserted by

14
00:00:39,930 --> 00:00:40,740
the object.

15
00:00:40,740 --> 00:00:42,830
So everything, as they call it, objects.

16
00:00:42,840 --> 00:00:49,260
And I want to do to add sound the object in our name field, know a last name field and also the instrument

17
00:00:49,260 --> 00:00:49,580
field.

18
00:00:49,770 --> 00:00:51,150
So how can do that work?

19
00:00:51,150 --> 00:00:55,380
In this video, I will show you that things with the live example for doing this.

20
00:00:55,380 --> 00:00:59,760
First of all, we have to do we have to open our terminal, so just open our terminal.

21
00:00:59,780 --> 00:01:01,320
So that is our project directly.

22
00:01:01,590 --> 00:01:05,700
And this project is truly first of all, we have to go to our shell like here.

23
00:01:05,700 --> 00:01:14,700
You have to write down the python python and then you have to define a demoness by Nannerl dot file.

24
00:01:14,730 --> 00:01:19,950
And then she'll say just simply defined as a python, Amandas fi and the shell.

25
00:01:20,370 --> 00:01:24,660
So now if they enter, so now you can see snow redacted to our database.

26
00:01:24,680 --> 00:01:30,090
Chairlady that means with the shell here, I want to insert all the data in our particular this all

27
00:01:30,090 --> 00:01:31,130
that database table.

28
00:01:31,260 --> 00:01:37,860
So now here first of all, we have to do we have to import our all that models right here in our files.

29
00:01:37,860 --> 00:01:38,580
Tap into this.

30
00:01:38,580 --> 00:01:42,270
Fastweb, I have defined our models into this model that is our models.

31
00:01:42,660 --> 00:01:46,110
So now, first of all, you have to do you have to import it.

32
00:01:46,110 --> 00:01:51,480
So if you want to import it in particular, that's your area you have to define as a from that means

33
00:01:51,480 --> 00:01:56,970
from where it will be inserted from our this step and with this step that is our model.

34
00:01:57,060 --> 00:01:57,300
Right.

35
00:01:57,600 --> 00:02:04,560
So now I just simply defined as a fast like a fast underscore ab our Folden name and then into this

36
00:02:04,560 --> 00:02:06,370
holder that have also the model.

37
00:02:06,400 --> 00:02:12,120
So I just simply defined all the models and found to these models I want to do on the import side are

38
00:02:12,130 --> 00:02:14,070
simply defined as import and import.

39
00:02:14,070 --> 00:02:17,210
Our that I want to import our this class.

40
00:02:17,220 --> 00:02:20,940
That means our this table, our table name as a musician.

41
00:02:21,270 --> 00:02:23,460
So I just simply defined as a musician.

42
00:02:26,320 --> 00:02:33,010
Musician, good friend, I hope it should be very much clear to you also from our staff, from our Fastweb

43
00:02:33,010 --> 00:02:39,040
models, I want to import our this table that is our mediation table, say, to simply define our mediation

44
00:02:39,040 --> 00:02:39,410
table.

45
00:02:39,550 --> 00:02:44,920
So here, if you want to add multiple feltlike here, if you want to add the multiple table, then you

46
00:02:44,920 --> 00:02:48,040
can also defining it with the comma then album.

47
00:02:48,610 --> 00:02:51,020
So this type of things you can define.

48
00:02:51,040 --> 00:02:55,620
OK, so if you want to add that multiple table, then you can add that they belong here.

49
00:02:55,640 --> 00:02:57,430
So right now I only want to do one thing.

50
00:02:57,670 --> 00:03:02,980
The data that means our object, you know, our musician that this musician tables right now.

51
00:03:02,980 --> 00:03:03,820
It's OK with me.

52
00:03:03,850 --> 00:03:08,430
So if you click as they enter now, you can see snow redacted our main area.

53
00:03:08,440 --> 00:03:09,970
That means you our mediation area.

54
00:03:10,120 --> 00:03:12,020
So now, first of all, I want to check it.

55
00:03:12,040 --> 00:03:15,230
Is there have any data is already added or not.

56
00:03:15,250 --> 00:03:18,870
So if you want to check it, it's pretty much simple things like just simply defending the print.

57
00:03:19,720 --> 00:03:26,050
OK, just being able the P.A. down the check it in our musician into the musician.

58
00:03:26,050 --> 00:03:28,120
I want to check all the tower objects.

59
00:03:30,430 --> 00:03:35,840
OK, just simply defined as objects and all so objects, all the data.

60
00:03:35,950 --> 00:03:41,050
So first of all, I want to check it every piece that have any data in this table, that means musician.

61
00:03:41,110 --> 00:03:43,590
They will not see, as I told you every day.

62
00:03:43,750 --> 00:03:45,550
It means that actually objects.

63
00:03:45,580 --> 00:03:49,650
OK, so here I just simply defined as a preened in our musicians table.

64
00:03:50,080 --> 00:03:51,970
I want to define all that objects.

65
00:03:51,980 --> 00:03:55,330
So here I just simply defined as objects and all the data.

66
00:03:55,750 --> 00:04:00,400
So now if you click on the enter now he is not showing as a blank.

67
00:04:00,400 --> 00:04:03,270
That means here right now I don't have any data.

68
00:04:03,490 --> 00:04:05,880
So no, I want to do I want to insert some of the data.

69
00:04:05,950 --> 00:04:09,810
So if you want to insert it like here, I define as the object one of the variable.

70
00:04:10,030 --> 00:04:13,060
OK, so I just simply defined as object, one of the variable.

71
00:04:13,060 --> 00:04:19,900
And here with this in our musician there will see that this musician table, I want to define all that

72
00:04:19,900 --> 00:04:20,360
our field.

73
00:04:20,400 --> 00:04:22,420
So right now, our field them.

74
00:04:22,420 --> 00:04:26,620
So our filename as a first name, the last name and the instrument.

75
00:04:26,660 --> 00:04:28,720
So now I first of all, I want to define the last name.

76
00:04:29,290 --> 00:04:35,250
OK, so you just simply defined as a fast make sure spelling is correct so that they are fast and good

77
00:04:35,290 --> 00:04:40,050
name, because that's all that our database will name right into this first name here.

78
00:04:40,060 --> 00:04:45,440
I do want to define that first name, so I simply defend that first name like the Gazette.

79
00:04:45,940 --> 00:04:46,360
OK.

80
00:04:46,450 --> 00:04:52,030
And also after that, after that, I want to define another one better here.

81
00:04:52,030 --> 00:04:58,270
I want to define our another field or another field as a last name, last underscore name and for the

82
00:04:58,270 --> 00:05:00,570
last name and define another name.

83
00:05:00,580 --> 00:05:01,970
So shall be Azarian.

84
00:05:02,500 --> 00:05:03,600
OK, Ghazarian.

85
00:05:03,790 --> 00:05:08,230
And also to have another field, another field, our field name as an instrument.

86
00:05:08,230 --> 00:05:08,660
Right.

87
00:05:08,680 --> 00:05:11,140
That means that instruments here are defining it.

88
00:05:14,070 --> 00:05:19,740
So into this feed here, I want to define that instrument name will be as a guitar.

89
00:05:22,500 --> 00:05:23,930
OK, just name it as a guitar.

90
00:05:24,300 --> 00:05:26,510
So friend, I hope you can understand about it.

91
00:05:26,520 --> 00:05:33,630
So I just take out the object and into this object in our in our musician table into this musician to

92
00:05:33,630 --> 00:05:38,490
be our first name into this fascinating mountainside that Karzai and into this last name.

93
00:05:38,490 --> 00:05:41,880
I want to insert that as a Karzai and the instrument here.

94
00:05:41,880 --> 00:05:43,950
I want to start as a guitar, OK?

95
00:05:44,580 --> 00:05:48,480
So here I want to insert all the data, you know, at this table that the musicians table.

96
00:05:48,750 --> 00:05:52,780
So now if you click as they enter, so now we have to do we have to save it.

97
00:05:52,800 --> 00:05:56,550
So here I want to save this object data into this database table.

98
00:05:56,570 --> 00:05:59,550
So if you want to save it, then you have to define the object.

99
00:05:59,730 --> 00:06:02,490
And into this object, I want to save all the data.

100
00:06:02,610 --> 00:06:06,210
I just simply say, OK, click, enter.

101
00:06:06,240 --> 00:06:10,490
So now you can see if the data is safe in our database table, that means information.

102
00:06:11,370 --> 00:06:13,800
So don't want to do and to create another object.

103
00:06:14,100 --> 00:06:17,620
I want to create another object and I also want to insert the data.

104
00:06:17,640 --> 00:06:21,150
So but I just simply defined the same things as the object.

105
00:06:21,150 --> 00:06:27,290
And then in our musician into the musician, I have to define our fast playing field.

106
00:06:28,050 --> 00:06:32,970
So here I define as a fast, fast underscore name.

107
00:06:32,970 --> 00:06:42,900
And for the first name I want to define as a Jack and Jack and also, you know, last last name field

108
00:06:43,500 --> 00:06:44,850
into the last name field.

109
00:06:44,850 --> 00:06:48,600
I want to insert our another data here instead of the Jack Ma.

110
00:06:49,170 --> 00:06:58,020
OK, and then also after that, I know our instrument field, instrument field in the instrument field.

111
00:06:58,020 --> 00:07:02,460
I want to insert a civilian equivalent.

112
00:07:02,550 --> 00:07:04,270
I just simply defending the violin.

113
00:07:04,770 --> 00:07:09,510
So this step up, one of the data I want to also inserted in our musician table.

114
00:07:09,510 --> 00:07:11,040
So that is our first name field.

115
00:07:11,040 --> 00:07:16,860
It is the FastLane value to be saved as a Jack and last name, which is the same as a MA and the instrument

116
00:07:16,860 --> 00:07:19,350
that I a.d.a you M.B.A..

117
00:07:20,310 --> 00:07:26,490
M.A., perfect, and then here I also want to insert our common name as the violence, and I just click

118
00:07:26,490 --> 00:07:29,390
on the enter and now we have to do we have to also save it.

119
00:07:29,400 --> 00:07:31,220
So I just simply defend the object.

120
00:07:31,230 --> 00:07:33,950
And when did this object that I want to save it.

121
00:07:34,290 --> 00:07:37,070
So I just simply defend our of the data and save it.

122
00:07:37,530 --> 00:07:38,090
Perfect.

123
00:07:38,370 --> 00:07:43,290
So not only if you want to check it out, all the data is successfully inserted or not.

124
00:07:43,320 --> 00:07:46,580
If you want to take it like right now, I want to paint it again.

125
00:07:47,190 --> 00:07:48,840
So before I have already checked it.

126
00:07:48,840 --> 00:07:52,200
So, you know, shortly before issuing showing us the empty to No.

127
00:07:52,200 --> 00:07:53,320
One to check it again.

128
00:07:53,320 --> 00:07:55,440
So I just simply define our musician be.

129
00:07:59,100 --> 00:08:03,540
Into the musicians table, I want to check all that object, OK?

130
00:08:03,650 --> 00:08:07,260
Objects and all sides are simply defining it.

131
00:08:07,350 --> 00:08:10,560
So preened our musician table into the musicians table.

132
00:08:10,570 --> 00:08:12,450
I want to check all that objects.

133
00:08:12,460 --> 00:08:14,580
So I just find as objects all.

134
00:08:14,580 --> 00:08:18,240
And now click on the enter your eyes and I'll kiss your friend.

135
00:08:18,240 --> 00:08:20,240
Now it's actually showing our data.

136
00:08:20,550 --> 00:08:22,860
So before that was display as the empty.

137
00:08:22,860 --> 00:08:27,360
Right now I have already inserted two of these data for the reasons here you can see snowshoeing as

138
00:08:27,360 --> 00:08:31,120
a musician, this object one and the musician object too.

139
00:08:31,290 --> 00:08:33,450
So here I have been added to this data.

140
00:08:33,480 --> 00:08:35,820
So now it's perfectly display on here.

141
00:08:36,090 --> 00:08:40,930
That means we successfully added our all that object in our aspecific this table.

142
00:08:41,250 --> 00:08:44,920
So here, if you want to visible, you're all the data that is here.

143
00:08:44,940 --> 00:08:47,080
I have inserted that Karzai guy.

144
00:08:47,100 --> 00:08:51,360
Having said that, Karzai Orien and the guitar and the Jack Ma and the Valliant.

145
00:08:51,360 --> 00:08:51,610
Right.

146
00:08:52,000 --> 00:08:56,190
So here, if you want to actually display these dots right now, because it's not only showing that

147
00:08:56,190 --> 00:08:59,310
objects that have one object, there is now the second object.

148
00:08:59,670 --> 00:09:04,710
But here, if you want to display your all the data, then you have to you have to update it like,

149
00:09:04,710 --> 00:09:10,320
you know, ah, that position here in particular, that area you have to update and other options like

150
00:09:10,320 --> 00:09:11,510
assembly the of the drive.

151
00:09:11,940 --> 00:09:14,400
So you do this Jeev here you have to define as is.

152
00:09:15,490 --> 00:09:20,600
OK, that me, the SDR and with this is here you can defining it.

153
00:09:20,670 --> 00:09:24,360
I just simply define that on a selfs I just simply defined as self.

154
00:09:24,390 --> 00:09:29,580
OK, so with this self you can actually display like here I just simply defined as it all returned and

155
00:09:29,580 --> 00:09:32,070
with the self, so with the self.

156
00:09:32,070 --> 00:09:36,060
I want to display our place that I want to display our first name.

157
00:09:36,480 --> 00:09:38,240
I want to display that first name.

158
00:09:38,250 --> 00:09:41,070
And after that I dissembler definitive blah's.

159
00:09:41,370 --> 00:09:44,490
And then here I just all the spaces.

160
00:09:44,490 --> 00:09:48,030
And after that I also want to display our last name.

161
00:09:48,040 --> 00:09:50,760
So our last name will be that D1 field name.

162
00:09:50,760 --> 00:09:52,500
So I just simply defined the last name.

163
00:09:52,710 --> 00:09:56,090
OK, so you want to display it before display that last name.

164
00:09:56,100 --> 00:09:57,390
You have to define that self.

165
00:09:57,390 --> 00:09:58,920
So I just simply defend itself.

166
00:09:59,760 --> 00:10:02,040
Sales dot all last name perfect.

167
00:10:02,490 --> 00:10:07,390
So I just simply defined as a dev and with this, starting with the system, one of the one of the four

168
00:10:07,410 --> 00:10:13,140
function with this here I would define as it is self and then return self our first name.

169
00:10:13,140 --> 00:10:15,080
So we shall be display our first name.

170
00:10:15,330 --> 00:10:20,940
That means FastLane Field Data and also under define another one as a last name field data.

171
00:10:21,480 --> 00:10:27,540
OK, so now I want to do and to save it I just click on the Save All and now let's check this out.

172
00:10:27,540 --> 00:10:33,120
And as I told you before, if you change, make any changes in your model Sadiya, then you have to

173
00:10:33,120 --> 00:10:34,020
run three codes.

174
00:10:34,020 --> 00:10:34,320
Right.

175
00:10:34,590 --> 00:10:36,470
So now we have to actually run it again.

176
00:10:36,480 --> 00:10:37,970
That means we have to migrate it again.

177
00:10:38,340 --> 00:10:41,240
So first of all, from here, I want to accept this.

178
00:10:41,280 --> 00:10:43,440
I just simply exit from here.

179
00:10:44,300 --> 00:10:48,480
OK, so now that is our project profile into this project folder here.

180
00:10:48,480 --> 00:10:50,730
I have to run our same code again.

181
00:10:50,730 --> 00:10:55,920
So as the python, Manning's dot fly and then migrate.

182
00:10:57,120 --> 00:10:58,550
So don't click as they enter.

183
00:10:59,760 --> 00:11:00,140
Yeah.

184
00:11:00,150 --> 00:11:08,010
And then after that we have to run out another code as a python and then our managers start phy and

185
00:11:08,010 --> 00:11:13,740
then make migration migrations to the make migration.

186
00:11:13,740 --> 00:11:19,880
Our first steps, our first step name as a fast fast underscore app folder.

187
00:11:20,310 --> 00:11:22,470
That means that is our faster folder.

188
00:11:22,470 --> 00:11:29,140
So the assembly defines the python manor's dot file and the migration's OK migration's and then fast

189
00:11:29,240 --> 00:11:30,960
step because the enter.

190
00:11:32,100 --> 00:11:37,530
You consistently showing that no change was detected in our app, that means fast app, and after that

191
00:11:37,530 --> 00:11:39,230
we have to also download the same code.

192
00:11:39,240 --> 00:11:40,950
That means the Python manison migrates.

193
00:11:40,970 --> 00:11:45,770
I just simply defended the Python managers dart, FYI.

194
00:11:45,780 --> 00:11:47,520
So it's pretty much common knowledge of the code.

195
00:11:47,520 --> 00:11:52,760
You have to remember it, OK, they just simply migrate are pretty good.

196
00:11:52,800 --> 00:11:54,110
So not legal to enter.

197
00:11:54,780 --> 00:11:59,990
So here I migrate our database, so now I want to do and rejected our sale again.

198
00:12:00,000 --> 00:12:04,270
So if you want to go here, you have to define as a python, right.

199
00:12:04,290 --> 00:12:10,020
Python and the man is dot fi and then shell you're going to enter.

200
00:12:10,890 --> 00:12:13,740
So now we are into the shell area and into the shell area.

201
00:12:13,740 --> 00:12:16,060
First of all, I want to import it.

202
00:12:16,110 --> 00:12:18,560
That means import our musicians.

203
00:12:18,600 --> 00:12:23,820
I just simply different from what I have already discussed about the things we do from our Whitstable.

204
00:12:23,820 --> 00:12:26,520
That means from a rich folder, our Fastjet folder.

205
00:12:26,520 --> 00:12:29,190
I want to access this models and these models.

206
00:12:29,190 --> 00:12:31,560
That is our table name as a musician.

207
00:12:31,560 --> 00:12:31,790
Right.

208
00:12:32,130 --> 00:12:39,960
So I just simply from our fast, fast underscore app and from our fast app ideas and different models,

209
00:12:41,040 --> 00:12:44,900
OK, that means in our fast app and that is our models into this models.

210
00:12:44,910 --> 00:12:46,710
I want to be imported fast.

211
00:12:47,760 --> 00:12:50,370
So I just reimported in or out from here.

212
00:12:50,370 --> 00:12:52,330
I want to import our disposition.

213
00:12:52,770 --> 00:12:54,780
So I just simply define our musician table.

214
00:12:56,340 --> 00:12:57,590
So noncyclical to enter.

215
00:12:57,600 --> 00:13:00,270
So now we are in musicians and I want to print it.

216
00:13:01,140 --> 00:13:14,620
So I want to print our our musician, our musician table and all that objects, objects and all so and

217
00:13:14,640 --> 00:13:16,110
to now print it again.

218
00:13:16,440 --> 00:13:20,350
That means that print in our musicians, all that object I want to display.

219
00:13:20,370 --> 00:13:22,140
So now if you click as they enter.

220
00:13:22,530 --> 00:13:23,610
Yes.

221
00:13:23,610 --> 00:13:27,340
Now can see friend now perfectly display our name.

222
00:13:27,630 --> 00:13:33,990
That means for here in our musicians table I have inserted on the Algerian because of all here you can

223
00:13:33,990 --> 00:13:37,520
say only added our first name and then espace our last name.

224
00:13:37,710 --> 00:13:41,670
And here if you use that instrument then also it will be visible.

225
00:13:41,710 --> 00:13:45,770
So right now I have only defined our first name and the last name.

226
00:13:45,990 --> 00:13:48,510
So now this is not showing the Kazarian.

227
00:13:48,510 --> 00:13:52,220
And also I have save another data as the checkmark.

228
00:13:52,620 --> 00:13:55,470
I hope it's very much clear to your friend Zino.

229
00:13:55,480 --> 00:13:58,310
Next, we do want to discuss about that admin side.

230
00:13:58,320 --> 00:14:02,940
So by default, Django providing some of the admin panel's next video.

231
00:14:02,940 --> 00:14:09,060
I will show you how can locking into this admin panel and how can read all this data so every data will

232
00:14:09,060 --> 00:14:10,320
be saving our database.

233
00:14:10,320 --> 00:14:11,440
That means our backing.

234
00:14:11,460 --> 00:14:16,320
So how can access your at being in our next video, I will show you that things with a live example.

235
00:14:16,680 --> 00:14:20,010
So thanks for watching and I will see you in the next video.
