1
00:00:00,180 --> 00:00:05,490
Hello, friend, welcome come back in a previous video, I have already created one of the Super eight

2
00:00:05,490 --> 00:00:08,490
minutes or so and also we logging it right.

3
00:00:08,910 --> 00:00:11,010
So right now we don't need this.

4
00:00:11,370 --> 00:00:17,220
So now I want to do in this video, I want to discuss about more of the example for this model like

5
00:00:17,220 --> 00:00:19,020
here if you go our project.

6
00:00:19,020 --> 00:00:21,710
So in particular that right now we don't need this.

7
00:00:21,720 --> 00:00:24,460
I just simply close it.

8
00:00:24,480 --> 00:00:28,320
OK, so now in particular, that position, they have all the parameters.

9
00:00:28,320 --> 00:00:33,270
So into these parameters I have using as a maximum length as a 50.

10
00:00:33,270 --> 00:00:33,560
Right.

11
00:00:33,870 --> 00:00:39,150
So here to have some of the another parameter I also want to share with you, like by default, the

12
00:00:39,310 --> 00:00:42,360
diameter parameter of the null, like the normal means.

13
00:00:42,360 --> 00:00:43,980
Well it should be by default.

14
00:00:43,980 --> 00:00:48,090
That will be a default by default that actually defaults.

15
00:00:48,090 --> 00:00:54,000
And if you make the things are the true, that means if you make the things that are true, then this

16
00:00:54,000 --> 00:00:55,800
field will be marked as a null.

17
00:00:55,800 --> 00:00:59,130
So by default in Django, that is actually that false.

18
00:00:59,130 --> 00:01:03,700
But if you want to change it, if you want to make that feel as an animal, then you can make that things

19
00:01:03,720 --> 00:01:05,240
now as a true OK.

20
00:01:05,250 --> 00:01:12,630
And also they have the another parameter that is actually a blank and by default, these blank actually

21
00:01:12,630 --> 00:01:13,320
defaults.

22
00:01:13,350 --> 00:01:15,910
OK, so by default that is actually default.

23
00:01:16,650 --> 00:01:18,010
So by default, that is actually default.

24
00:01:18,030 --> 00:01:21,520
That means you have to mark this field as a record.

25
00:01:21,540 --> 00:01:23,360
OK, that means this field is the regrette.

26
00:01:23,640 --> 00:01:26,940
So if you want to make that things as inarticulate, then you can just change it.

27
00:01:27,000 --> 00:01:28,300
That a blank parameter.

28
00:01:28,320 --> 00:01:30,570
You have to change it as a true OK.

29
00:01:30,600 --> 00:01:32,090
You have to just change it as a true.

30
00:01:32,430 --> 00:01:34,330
I hope you can will understand about it.

31
00:01:34,350 --> 00:01:38,240
So by default, these blank as it falls away, it will be a default.

32
00:01:38,250 --> 00:01:41,520
That means you have to insert the data that is this field is required.

33
00:01:41,850 --> 00:01:44,970
It's just like some of the input fields input, the import.

34
00:01:45,190 --> 00:01:50,220
And if you have some of the required right, they have some of the required options that this field

35
00:01:50,220 --> 00:01:52,890
is the that step up on some of the parameters.

36
00:01:52,890 --> 00:01:58,200
But in Django here, if you want to use it, then you have to make the things as a trousseau and it

37
00:01:58,200 --> 00:01:59,000
should be the truth.

38
00:01:59,000 --> 00:02:03,250
Then you can make that things feel as a logical OK rather than by default.

39
00:02:03,270 --> 00:02:06,420
That was a default by default.

40
00:02:06,420 --> 00:02:09,000
That will be as a false choice, will be as false.

41
00:02:09,000 --> 00:02:11,940
Then you cannot actually make that feel as empty.

42
00:02:12,120 --> 00:02:14,850
You have to insert some of the data in specific.

43
00:02:14,850 --> 00:02:16,090
This felt like a friend.

44
00:02:16,140 --> 00:02:21,660
So here there is actually another parameter as a blank I setting, you can well understand about it.

45
00:02:21,690 --> 00:02:25,710
So that is by default some of the parameters that will be needed in our project.

46
00:02:25,860 --> 00:02:29,250
And also they have another option for the charges like here.

47
00:02:29,250 --> 00:02:33,830
If you want to put your user to your user can choose only one option.

48
00:02:33,870 --> 00:02:36,890
OK, then you can also define that things with the charges.

49
00:02:37,170 --> 00:02:41,940
So how can working with this in this video, I will show you like here, there is a number of these

50
00:02:42,310 --> 00:02:44,960
right into this number of Ester's field here.

51
00:02:44,970 --> 00:02:47,090
I want to define some of the option.

52
00:02:47,110 --> 00:02:49,840
So here I want to we want to use some of the charges option.

53
00:02:49,860 --> 00:02:51,810
The user can only try this.

54
00:02:51,990 --> 00:02:53,010
Some of the rating.

55
00:02:53,220 --> 00:02:54,420
That is good.

56
00:02:54,420 --> 00:02:56,400
That is the bad and that is excellent.

57
00:02:56,430 --> 00:02:59,560
So all the user can only use one option.

58
00:02:59,910 --> 00:03:04,100
So here, if you want to add this step of on the Chargers function, then how can do it?

59
00:03:04,110 --> 00:03:11,180
I show you like here, first of all, you have to do we have to define I just take one of the variable

60
00:03:11,190 --> 00:03:11,940
as a rating.

61
00:03:12,780 --> 00:03:15,810
So I just simply defined the rating and into the seating area.

62
00:03:15,900 --> 00:03:17,220
So into the seating area.

63
00:03:17,220 --> 00:03:19,470
I have to do I have to define our field.

64
00:03:20,280 --> 00:03:25,740
First of all, here should be as a value I show you everything will be very much clear to you.

65
00:03:25,740 --> 00:03:31,950
I just simply defined as the one will be as a value and then our name will be is just like as a select

66
00:03:31,950 --> 00:03:32,350
options.

67
00:03:32,370 --> 00:03:32,570
Right.

68
00:03:32,590 --> 00:03:33,360
Inestimable.

69
00:03:33,360 --> 00:03:35,010
I think you already know about that.

70
00:03:35,010 --> 00:03:38,850
Select and the option and for the option we define some of the value.

71
00:03:38,850 --> 00:03:39,110
Right.

72
00:03:39,450 --> 00:03:41,480
So now I just simply defining it as a waste.

73
00:03:42,820 --> 00:03:45,420
So I just simply defined all of the name will be as a host.

74
00:03:45,420 --> 00:03:49,020
And then I want to take another one, the true value.

75
00:03:49,380 --> 00:03:57,930
And for this one, I just simply defined as a bad and also I want to take another one, the three.

76
00:03:58,080 --> 00:04:01,290
And for this one, I want to define as a not bad.

77
00:04:02,700 --> 00:04:03,810
OK, not bad.

78
00:04:03,810 --> 00:04:08,580
So this step up on the text, so this the text will be visible in our offline area.

79
00:04:08,580 --> 00:04:09,930
That means our chosen area.

80
00:04:10,380 --> 00:04:17,340
And also after that, I want to pick another one as a four and the four the four I defined as a good

81
00:04:18,660 --> 00:04:22,680
so only user can choose I specific this all that field.

82
00:04:22,920 --> 00:04:27,960
OK, so here I define as a five and four the five I name it as excellent.

83
00:04:30,150 --> 00:04:31,810
OK, I just name it as excellent.

84
00:04:31,980 --> 00:04:38,550
So now if you compare it to the various HTML code into this HTML, what exactly would it into the e-mail.

85
00:04:38,560 --> 00:04:41,880
I'm better able to post on the comments for this one into this HTML.

86
00:04:41,880 --> 00:04:43,260
We define that select right.

87
00:04:43,740 --> 00:04:49,410
So we define that select into the select what exactly we need into the select, we define some of the

88
00:04:49,410 --> 00:04:52,680
option, so we define some of the option.

89
00:04:53,940 --> 00:04:58,950
So the option here have some of the value and in the value we define some of the value.

90
00:04:58,950 --> 00:04:59,220
Right.

91
00:04:59,400 --> 00:04:59,880
And also.

92
00:04:59,970 --> 00:05:03,070
So after that, we define some of the gold as a worst.

93
00:05:04,140 --> 00:05:10,350
So this type of one of the texts that the text actually visible right after that, we have to do have

94
00:05:10,350 --> 00:05:15,420
to close it option something that we have to close it.

95
00:05:15,450 --> 00:05:20,030
So if we now compare with this one, so that the original code into this e-mail code, that is actually

96
00:05:20,100 --> 00:05:20,960
option value.

97
00:05:20,970 --> 00:05:23,550
And here in Django, that is actually our value.

98
00:05:23,730 --> 00:05:26,880
OK, and also the text that the old text.

99
00:05:26,880 --> 00:05:29,640
So now I want to do underpin this text as it was.

100
00:05:29,670 --> 00:05:30,660
That is a bad.

101
00:05:30,660 --> 00:05:31,660
There is not bad.

102
00:05:31,680 --> 00:05:32,370
That is good.

103
00:05:32,370 --> 00:05:34,770
And excellent is just like that.

104
00:05:35,220 --> 00:05:38,240
OK, and so now I think it should be very clear to you.

105
00:05:38,310 --> 00:05:40,800
So here I just simply defining it.

106
00:05:40,800 --> 00:05:46,410
So with this stating, I simply defined some of the value as a one value the to value three value.

107
00:05:46,410 --> 00:05:48,320
And for that we value our text.

108
00:05:48,320 --> 00:05:49,710
It'll be as a not bad.

109
00:05:49,740 --> 00:05:55,140
So here I am defining it and now we have to do we have to start things in our D field area.

110
00:05:55,170 --> 00:05:59,950
That means our number starts Valaria and with this Campbellsville area, that is our models.

111
00:05:59,970 --> 00:06:02,070
And here I define as Intissar Field.

112
00:06:02,070 --> 00:06:02,370
Right.

113
00:06:02,850 --> 00:06:05,940
So here I can say I define that all in these are values here.

114
00:06:05,940 --> 00:06:10,800
If you want to use some of these chain value, OK, like here, if you use some of these chain values,

115
00:06:10,800 --> 00:06:12,740
then you have to update this type.

116
00:06:12,990 --> 00:06:15,810
That means then you have to use it as a character filter.

117
00:06:15,930 --> 00:06:16,210
Right.

118
00:06:16,530 --> 00:06:17,610
So now it's OK with me.

119
00:06:17,610 --> 00:06:21,600
I am using that our all that integer value for the resources.

120
00:06:21,630 --> 00:06:22,200
OK with me.

121
00:06:22,230 --> 00:06:25,570
So now we have to do we have to parse out this stating we have to pass it.

122
00:06:25,590 --> 00:06:27,600
That means that it will be other charges.

123
00:06:30,030 --> 00:06:32,980
And here we have to do we have to pass out these things.

124
00:06:33,030 --> 00:06:35,830
I just simply copied and here I just simply pass it.

125
00:06:36,240 --> 00:06:36,510
OK.

126
00:06:36,730 --> 00:06:38,130
So that's all you have to do.

127
00:06:38,130 --> 00:06:41,760
So as I told you, what about the Thiensville updated in our model?

128
00:06:41,780 --> 00:06:43,230
Savir, then you have to run.

129
00:06:43,290 --> 00:06:45,420
You have to migrate it with the three commands.

130
00:06:45,420 --> 00:06:45,640
Right.

131
00:06:45,960 --> 00:06:52,080
So now, first of all, I want to do because I save all I to save all and now go to our time, you know,

132
00:06:52,770 --> 00:06:57,360
I just open our time, you know, and that position, first of all, I have to migrate each side.

133
00:06:57,360 --> 00:07:05,490
I simply defined as a python and then as a man is not fi and that my great just simply defined as a

134
00:07:05,490 --> 00:07:11,160
minus fi and the magnetically as they enter now can see it's not perfectly added.

135
00:07:11,160 --> 00:07:13,680
And after that we have to do our second command.

136
00:07:13,680 --> 00:07:20,340
Our second command will be as a python and that man as Dart Fi and the MC migration.

137
00:07:23,070 --> 00:07:30,030
I can make my conditions and our application name, our application name is the fast step fast underscore

138
00:07:30,030 --> 00:07:30,860
app, right?

139
00:07:31,410 --> 00:07:32,730
So that is our first app.

140
00:07:32,730 --> 00:07:34,510
So that will be as a python.

141
00:07:34,570 --> 00:07:41,760
Man, is that the man fi and that make migration's and the app knuckleballers enter perfect.

142
00:07:41,770 --> 00:07:46,100
And now we have to do again our run this command as a python manage and find my grade.

143
00:07:46,530 --> 00:07:55,170
So just simply defined as the python and that man is not fi and that my great python man is why I end

144
00:07:55,170 --> 00:07:56,720
up going to enter.

145
00:07:57,690 --> 00:07:58,520
Nice, perfect.

146
00:07:58,830 --> 00:08:02,640
And after that I want to do unta on our starboard side just simply defending the python.

147
00:08:03,330 --> 00:08:11,940
I get python and that man is dot fi and then run server side a simply defined as Python managed to fi

148
00:08:11,940 --> 00:08:13,800
and answer botanicas enter.

149
00:08:16,140 --> 00:08:23,610
Or so everybody started running, so I just simply copied and now go here and now OpenNet our server

150
00:08:23,610 --> 00:08:24,000
again.

151
00:08:25,000 --> 00:08:32,410
To now go to our admin center so that other admins have already logged in for the reasons you can actually

152
00:08:32,410 --> 00:08:33,430
I can actually access it.

153
00:08:33,670 --> 00:08:39,700
So not if you go to our albums and go to our ad albums and do the ad albums here.

154
00:08:39,700 --> 00:08:42,580
You can see now I have defined that number of estar.

155
00:08:42,580 --> 00:08:46,140
So there is the feel here to have defined all the charges option.

156
00:08:46,510 --> 00:08:47,860
So now I can see all the choose.

157
00:08:47,860 --> 00:08:53,380
This option is not visible as it was as bad as a not bad the good and excellent.

158
00:08:53,650 --> 00:08:59,560
So all that are available here I have defined so all the total value I have defined for the ratings.

159
00:08:59,560 --> 00:09:01,220
So that is are all that value.

160
00:09:01,240 --> 00:09:06,580
So now it's perfectly now visible like a friend now consisting of perfectly visible in particular that

161
00:09:06,580 --> 00:09:09,810
position, and also is not showing all the Tauruses.

162
00:09:09,820 --> 00:09:13,960
So if you want to add some of the albums right now, I don't have any data.

163
00:09:13,960 --> 00:09:14,290
Right.

164
00:09:14,300 --> 00:09:21,280
So now if you want to add new album, like I just named as a Kazarian and I just named that name as

165
00:09:21,280 --> 00:09:25,180
a new album, OK, just name it as a new album.

166
00:09:25,180 --> 00:09:31,930
And here I just do find that they listed as a today and I just make that number of stars as excellent.

167
00:09:31,960 --> 00:09:34,600
OK, so now I just simply defining it as a safe.

168
00:09:35,550 --> 00:09:42,150
Yeah, you can see this album, Object one was acted successfully, and here you can see also Snell's

169
00:09:42,150 --> 00:09:45,680
successfully added on here and here into this album area.

170
00:09:45,690 --> 00:09:49,200
You can see it's not as the album object because of all here.

171
00:09:49,200 --> 00:09:54,420
I didn't find any selling like here in our that position.

172
00:09:54,420 --> 00:09:59,700
You can see I did find that is the line with the show, with the first name and the last name for this

173
00:09:59,700 --> 00:10:00,110
model.

174
00:10:00,120 --> 00:10:06,090
That means our musician Terbil like if you go to our musician Terbil, then it's very much clear to

175
00:10:06,090 --> 00:10:09,920
you if you go to that musician table here, you can see the musician table.

176
00:10:09,960 --> 00:10:15,990
I have defined our first name and the last name for reasons actually snowshoeing like that way, but

177
00:10:15,990 --> 00:10:20,930
in our albums into the albums is showing as the album object.

178
00:10:21,300 --> 00:10:26,970
So here, if you want to display your name, that means your album to have also onto the field in the

179
00:10:26,970 --> 00:10:27,330
field.

180
00:10:27,330 --> 00:10:31,980
I have defined that name and also a number of stars had defined as excellent.

181
00:10:31,980 --> 00:10:32,250
Right.

182
00:10:32,610 --> 00:10:36,080
So if you want to display these type of things, then you can also defining it.

183
00:10:36,360 --> 00:10:40,200
So if you want to do that work, then you have to do we have to go to here.

184
00:10:40,950 --> 00:10:44,270
So right now you don't need this and in particular that position.

185
00:10:44,880 --> 00:10:50,620
So here after this here, I want to added the same things I just simply copied.

186
00:10:51,180 --> 00:10:57,840
And after this after this here, I want to added our this def Esterline and here that is a self in the

187
00:10:57,840 --> 00:10:59,220
return it with the self.

188
00:10:59,220 --> 00:11:00,790
I want to display that name.

189
00:11:01,020 --> 00:11:05,520
That means our artist name, the artist name will be visible.

190
00:11:05,520 --> 00:11:13,680
And here I want to do after that is to be sure as a rating authority to still be sure as a rating and

191
00:11:13,680 --> 00:11:17,310
with the self around to display our these choices.

192
00:11:17,310 --> 00:11:18,690
All that our rating data.

193
00:11:18,780 --> 00:11:21,680
OK, here that is our filename as a name starts.

194
00:11:21,690 --> 00:11:23,940
I just simply with the selfie defined as the name.

195
00:11:24,400 --> 00:11:28,440
OK, that means a number of visitors and also here at the front of the question.

196
00:11:28,460 --> 00:11:30,150
So here we have to use it.

197
00:11:30,160 --> 00:11:34,260
So the symbol definitely stern and here we have to finish it.

198
00:11:34,260 --> 00:11:36,340
In particular, that position we have to defining it.

199
00:11:36,360 --> 00:11:43,260
OK, so I define this turn and here the sales of our numbers astir, so I just simply perfectly defining

200
00:11:43,260 --> 00:11:43,910
it on here.

201
00:11:43,920 --> 00:11:45,740
So now also be updated.

202
00:11:46,020 --> 00:11:48,240
So friend here I have updated our models.

203
00:11:48,240 --> 00:11:53,520
As I told you, whenever you update your model, then you have to run to have this command.

204
00:11:53,530 --> 00:11:54,870
So now we have to run it again.

205
00:11:54,900 --> 00:11:55,890
Clear to save all.

206
00:11:56,340 --> 00:11:57,860
OK, just click on Save All.

207
00:11:58,470 --> 00:11:59,670
So right now we don't need this.

208
00:11:59,670 --> 00:12:01,230
I can sell it.

209
00:12:01,230 --> 00:12:02,400
I want to run it again.

210
00:12:02,940 --> 00:12:04,260
So I just save all.

211
00:12:04,260 --> 00:12:11,370
And now, first of all, we have to run again as a python mayonaise dot file and migrate.

212
00:12:12,570 --> 00:12:12,960
Right.

213
00:12:12,960 --> 00:12:16,370
And the enter is perfect.

214
00:12:16,380 --> 00:12:23,760
And after that Python managers dot fi and then our MC Migration's.

215
00:12:26,640 --> 00:12:34,410
Migration's and our application name as a fast, fast underscore app site is simply defined as a python

216
00:12:34,770 --> 00:12:39,240
menace file and the migration and fast app will enter.

217
00:12:40,880 --> 00:12:47,320
And after that, also we have to run it again as a python, and that man is not Fi and that Maigret

218
00:12:47,950 --> 00:12:49,720
no, no going to enter.

219
00:12:50,540 --> 00:12:53,890
Yeah, everything is now updated to know what to do under Ronald Sarva.

220
00:12:54,230 --> 00:13:02,810
So I just simply defined as a python and as dot fi and then Ron Sarovar, I just simply add on our subarctic

221
00:13:03,020 --> 00:13:04,000
and our.

222
00:13:06,100 --> 00:13:13,690
Yeah, our server is now perfectly running, so now if you go here, go to the home, refresh it, go

223
00:13:13,690 --> 00:13:14,790
to the album.

224
00:13:15,310 --> 00:13:16,290
Yes.

225
00:13:16,330 --> 00:13:19,140
Now Kansi friend, now it's actually showing that name.

226
00:13:19,450 --> 00:13:23,050
So for this album, I have defined that name as a new album.

227
00:13:23,200 --> 00:13:26,750
And after that I have defined that comma right now.

228
00:13:26,780 --> 00:13:29,040
Should be very much clear to you here.

229
00:13:29,050 --> 00:13:30,550
I have defined that name.

230
00:13:30,640 --> 00:13:33,160
That means our album name and then the comma.

231
00:13:33,160 --> 00:13:36,970
And after that it will be displayed that rating one of the text.

232
00:13:36,970 --> 00:13:42,550
So you can see after that comma that is actually showing the ratings and ratings are value actually

233
00:13:42,550 --> 00:13:43,000
visible.

234
00:13:43,030 --> 00:13:45,690
So here is the visible added value as a fight.

235
00:13:46,060 --> 00:13:51,190
So how you have defined that as the accident for this one and for the excellent value is a five.

236
00:13:51,220 --> 00:13:54,400
So right now you can see I find that our there so there is no.

237
00:13:55,230 --> 00:13:57,190
So now it's perfectly visible.

238
00:13:57,190 --> 00:14:01,990
Our leading five, if you want to change the default to here, going to display that name, you can

239
00:14:01,990 --> 00:14:03,550
also define that name on here.

240
00:14:03,850 --> 00:14:07,460
So friend, I think is very much clear to you how you can do that work.

241
00:14:07,510 --> 00:14:12,730
OK, so I have already discussed about that the view, that template and the models.

242
00:14:12,760 --> 00:14:13,020
Right.

243
00:14:13,300 --> 00:14:19,780
So now together, everything how can read all the data and how can visibility in your funding page?

244
00:14:19,810 --> 00:14:25,210
That means if you go to our funding into the funding, if you go here.

245
00:14:25,510 --> 00:14:26,520
So there is our funding.

246
00:14:26,530 --> 00:14:26,780
Right.

247
00:14:27,010 --> 00:14:29,740
So here have already discussed about the things we do.

248
00:14:29,750 --> 00:14:35,830
How can the that your template and also that has all the static data, how can add that CSC in particular

249
00:14:35,830 --> 00:14:36,640
that position.

250
00:14:37,090 --> 00:14:38,650
So now together everything.

251
00:14:38,650 --> 00:14:43,850
How can actually display all that your data that is in our database right now that has all the data.

252
00:14:43,930 --> 00:14:45,810
So if you want to display all the data.

253
00:14:45,850 --> 00:14:48,050
So right now there is a musician to have the two data.

254
00:14:48,400 --> 00:14:53,470
So if you want to read these data and visible this data in particular, that position, how you can

255
00:14:53,470 --> 00:14:54,220
do that work.

256
00:14:54,220 --> 00:14:57,480
In our next video, I will show you that things with a live example.

257
00:14:57,880 --> 00:15:01,120
So thanks for watching and I'll see you the next video.
