1
00:00:00,240 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:02,130 --> 00:00:07,800
In a previous video I have already discussed about the things we do, how can display your all the details

3
00:00:07,800 --> 00:00:10,660
with our D model that the details view models?

4
00:00:10,980 --> 00:00:14,210
So now I want to do I want to work for our create view model.

5
00:00:14,400 --> 00:00:18,540
So if you want to working with this create, then first of all, we have to do we have to import one

6
00:00:18,540 --> 00:00:24,420
of the class, one of the building class as a create view, create and then view.

7
00:00:24,660 --> 00:00:28,860
OK, so now I want to do and create one of the class for this one.

8
00:00:28,870 --> 00:00:31,470
So here I just simply defined the class.

9
00:00:32,370 --> 00:00:36,060
I just simply defined as a class and I just named this class as an add musician.

10
00:00:37,590 --> 00:00:43,380
OK, I just simply defined that name as an ADD musician and then it will be inherited without this class

11
00:00:43,380 --> 00:00:44,310
as a creative use.

12
00:00:44,310 --> 00:00:46,050
I just simply defined that weird view.

13
00:00:46,560 --> 00:00:49,310
So here, first of all, we have to do we have to define our model.

14
00:00:49,830 --> 00:00:56,690
So I just simply define that model and then our models and then our models here.

15
00:00:56,700 --> 00:00:59,390
I want to insert this data in our musician tables.

16
00:00:59,400 --> 00:01:04,800
I just simply defined the musician table so far instance this musician will be trying to do and to add

17
00:01:04,800 --> 00:01:05,700
on to the menu.

18
00:01:05,710 --> 00:01:08,480
I want to add all the menu in our neighboring area.

19
00:01:08,490 --> 00:01:13,210
So that is in our best system to do the business general that is a home.

20
00:01:13,230 --> 00:01:18,690
So now I just simply copied I want to take another one and I just name it as the add musician.

21
00:01:21,000 --> 00:01:25,790
OK, I just came out of the admonition that you are ill, we have to create one of the oil for this

22
00:01:25,800 --> 00:01:27,470
one into the fast step name.

23
00:01:27,780 --> 00:01:32,010
I have to create one of the I'm one of the name as the ad.

24
00:01:32,850 --> 00:01:35,250
That means that you are a bad name as a musician.

25
00:01:36,570 --> 00:01:38,140
OK, just name me to that musician.

26
00:01:38,430 --> 00:01:40,370
So now let's do that works and I'll go to our.

27
00:01:40,380 --> 00:01:42,240
You are well into the you are ill.

28
00:01:42,270 --> 00:01:46,200
I just simply copy it and here I just simply pasted.

29
00:01:46,200 --> 00:01:52,670
So it's to be as a musician and underscore musician.

30
00:01:53,700 --> 00:01:54,890
So now we don't need this.

31
00:01:54,900 --> 00:01:57,960
I mean I'd say just simply be morbid and enjoy the view.

32
00:01:57,960 --> 00:02:03,760
I have already declared one of the class, so I have declared that class name as the musician suggestively

33
00:02:03,840 --> 00:02:07,320
copied and now I just simply defining our views.

34
00:02:07,320 --> 00:02:13,340
I have defined the class of that musician and I just name it as hour our musicians because of all in

35
00:02:13,350 --> 00:02:13,950
our business.

36
00:02:13,960 --> 00:02:16,800
Tmall I have already defined that name as a musician.

37
00:02:16,800 --> 00:02:17,100
Right.

38
00:02:17,490 --> 00:02:18,800
So that is our admonition.

39
00:02:19,200 --> 00:02:27,000
So now if you go here, so have only ordered our our musicians to step by step, how that process actually

40
00:02:27,000 --> 00:02:27,360
work.

41
00:02:27,360 --> 00:02:37,320
I want to show you like because I save all and now go to our site now go to a home, go to our ad musician

42
00:02:37,650 --> 00:02:39,180
and do the acquisition here.

43
00:02:39,180 --> 00:02:45,650
You can see now showing soldat or using model from mixed and Class-Based at musician without fields.

44
00:02:45,660 --> 00:02:48,480
That means here I didn't find any fields that are right.

45
00:02:48,480 --> 00:02:50,750
So we have to also define that field data.

46
00:02:51,000 --> 00:02:52,200
So now let's do that work.

47
00:02:52,210 --> 00:02:57,600
So friend, I want to show you how that process actually working then to still very much helpful to

48
00:02:57,600 --> 00:03:02,430
you like here now it's actually calling me to create one of the fields, so I have to define one of

49
00:03:02,430 --> 00:03:03,090
the fields.

50
00:03:03,450 --> 00:03:05,940
So after this, I just simply defending the fields.

51
00:03:06,780 --> 00:03:07,230
All right.

52
00:03:07,230 --> 00:03:09,810
I just simply to find the fields and the field area.

53
00:03:09,840 --> 00:03:11,250
What do you want to visible.

54
00:03:11,260 --> 00:03:12,670
Sound visible what?

55
00:03:12,680 --> 00:03:15,700
That I don't think that's one of the first name data.

56
00:03:17,000 --> 00:03:22,770
That means that's all that our database will name as a first name and then the last name.

57
00:03:23,070 --> 00:03:23,490
Right.

58
00:03:23,790 --> 00:03:25,530
So I want to insert all the data.

59
00:03:25,590 --> 00:03:32,160
If you go to our database, if you go to our musician into the musician, that is our first name here.

60
00:03:32,160 --> 00:03:33,990
I want to create in this data.

61
00:03:33,990 --> 00:03:38,160
I want to insert last name, Gotye, and also I on the inside that instrument data.

62
00:03:38,610 --> 00:03:44,580
So I just simply defined as a fast name field, last name field, and also I want to insert our instrument

63
00:03:46,530 --> 00:03:48,330
so is simply the front of the instrument.

64
00:03:48,810 --> 00:03:50,580
So now what exactly it should be.

65
00:03:50,580 --> 00:03:58,170
Ask like if you click on to save all I ask because I save all and now if you refresh it now can snowshoeing

66
00:03:58,170 --> 00:04:01,530
out another road there is a template does not exist because of all.

67
00:04:01,530 --> 00:04:05,820
I didn't create any template and also it's no suggested by default.

68
00:04:05,820 --> 00:04:11,000
One of the name you can see by default is created one of the name as a musician from the artist Daniel.

69
00:04:11,040 --> 00:04:15,810
That means you it's asking you to create this type of one of this Tamalpais.

70
00:04:16,140 --> 00:04:17,850
So now I want to do that work.

71
00:04:17,860 --> 00:04:19,470
So here I just simply copy it.

72
00:04:19,800 --> 00:04:23,520
So now in our final step, it's asking me to create this SGML.

73
00:04:23,520 --> 00:04:28,020
So in our first app that that see the first step, how much is it?

74
00:04:28,020 --> 00:04:32,490
As you can see, everything actually commanding on to now in our faster area.

75
00:04:32,490 --> 00:04:35,100
I want to create new files and I just named that file.

76
00:04:35,250 --> 00:04:39,720
I just name it as a musician, form that e-mail and I just let's save it.

77
00:04:40,080 --> 00:04:43,650
So here, first of all, we have to do we have to add our basic things.

78
00:04:44,250 --> 00:04:51,540
That means here we have to add our these extended basis HTML and also we have to end it.

79
00:04:51,540 --> 00:04:57,870
So to simply copy it and now after this, to simply finish it so that we don't need this, I just simply

80
00:04:57,870 --> 00:05:02,400
remove some of the things from here that is better this html, I remove it OK.

81
00:05:02,790 --> 00:05:09,480
And here I name it one of the name, I just defined that as three tag and here I define it to add new

82
00:05:09,570 --> 00:05:10,440
musician.

83
00:05:13,440 --> 00:05:18,720
But here, one thing spent by default, as I told you, by default, it's automatically created the

84
00:05:18,720 --> 00:05:24,500
file you can see automatically suggested on the file as a file stamp and a musician form protest.

85
00:05:25,200 --> 00:05:27,990
But here you can see previously I have added the template.

86
00:05:28,000 --> 00:05:31,940
So here I load this template so that, no, I didn't load any template.

87
00:05:31,950 --> 00:05:37,620
But if you now click the save all by default automatically, you should be getting out this file.

88
00:05:37,650 --> 00:05:44,460
OK, that means our musician found a file like show you like if you know refresh it, you can see by

89
00:05:44,460 --> 00:05:46,930
default is actually getting our D file.

90
00:05:46,980 --> 00:05:48,900
That is our e-mail I have created.

91
00:05:48,900 --> 00:05:54,210
That is actually the suggested one of those Tamalpais as a musician form by default is getting that

92
00:05:54,210 --> 00:05:55,860
file and display this file name.

93
00:05:55,890 --> 00:05:57,300
That is our admission.

94
00:05:57,300 --> 00:05:59,980
So you can see that it's now showing our add new musician.

95
00:06:00,560 --> 00:06:07,590
OK, so it's automatically actually defining these parts of our better I want to do and I don't want

96
00:06:07,590 --> 00:06:11,510
to take any risk, so I just simply add these things also on here.

97
00:06:11,790 --> 00:06:16,230
So here I have created our D file name that is our musician form.

98
00:06:16,240 --> 00:06:19,920
So A simply defined as a musician and then our form

99
00:06:22,590 --> 00:06:23,640
site is simply defined.

100
00:06:23,640 --> 00:06:24,870
That musician formed that this.

101
00:06:25,860 --> 00:06:27,630
I hope you can understand about it.

102
00:06:27,870 --> 00:06:33,720
So not only have to do we have to add one of the form in our musician form area musician e-mail to now

103
00:06:33,750 --> 00:06:35,310
go to our musicians, Jammal.

104
00:06:35,640 --> 00:06:43,560
And here after this I take the form and here we don't need any class and also we don't need any action

105
00:06:44,370 --> 00:06:44,730
here.

106
00:06:44,730 --> 00:06:49,920
I only want to take that methode will be as opposed to I just simply defined the post.

107
00:06:50,250 --> 00:06:52,000
So friend, here you can see it.

108
00:06:52,010 --> 00:06:53,480
I want to create some of the forms.

109
00:06:53,480 --> 00:06:55,710
So into this area we have to load this form.

110
00:06:55,720 --> 00:06:58,380
So here that is our models and that is our musician.

111
00:06:58,380 --> 00:06:58,670
Right.

112
00:06:58,950 --> 00:07:01,110
So here I have using that create view.

113
00:07:01,120 --> 00:07:06,890
So when using that we view plans by default use actually passing that all that form data with the forms.

114
00:07:06,890 --> 00:07:08,250
So here I want to use it.

115
00:07:08,790 --> 00:07:10,760
So I just simply use that form.

116
00:07:11,490 --> 00:07:14,430
So with this form also, I want to make the things as a one by one.

117
00:07:14,430 --> 00:07:17,430
So you have to define as as underscore paragraph.

118
00:07:17,430 --> 00:07:17,700
Right.

119
00:07:18,030 --> 00:07:19,380
I think you already know about it.

120
00:07:19,530 --> 00:07:27,990
And also we have to pass that CSF say, to simply define that CSF, see CSF, underscore Tolkan.

121
00:07:28,890 --> 00:07:34,560
And also after that, I want to do I want to take one of the input tags for the submits.

122
00:07:34,560 --> 00:07:40,290
I just simply define the import and text will be at a swap meet and I just simply defined that name

123
00:07:40,290 --> 00:07:44,160
will be at the submit and I just simply define that value.

124
00:07:44,190 --> 00:07:46,390
I defend the value as an admission.

125
00:07:48,880 --> 00:07:50,730
OK, just name it as an admission.

126
00:07:50,730 --> 00:07:53,430
And also I define better on the class.

127
00:07:55,470 --> 00:08:04,040
I define the class as a return between primary, OK, between between primary and between s.m.

128
00:08:04,060 --> 00:08:05,260
That means a small size.

129
00:08:05,760 --> 00:08:07,490
So now let's check this out.

130
00:08:07,500 --> 00:08:13,860
As I told you, with this art form automatically, shall we get our all that musician form table data?

131
00:08:13,860 --> 00:08:16,010
That means automatically we so be getting all the data.

132
00:08:16,740 --> 00:08:17,700
Now let's check this out.

133
00:08:17,700 --> 00:08:18,960
Clear to save all.

134
00:08:20,090 --> 00:08:26,330
Check our server, everything is running, will now go to our home, go to our ATM machine.

135
00:08:26,480 --> 00:08:33,200
Yes, you can see your friend automatically is getting all that our feel that that means tainted ammunition

136
00:08:33,200 --> 00:08:38,600
that had the three field at the first name, last name and the installment you can see surpassingly

137
00:08:38,600 --> 00:08:41,430
getting the first name, last name and the installment.

138
00:08:41,870 --> 00:08:48,290
So now here, if you pass any data like here, it defined as a test one, OK, namely to the test one

139
00:08:48,830 --> 00:08:52,790
and test two or test one.

140
00:08:52,790 --> 00:08:53,500
Actually better.

141
00:08:53,540 --> 00:08:56,800
I just simply find another one in a store domain name also the test one.

142
00:08:56,810 --> 00:09:04,240
And now if you add this mutation now you can see some of the arrows as either provided that you are

143
00:09:04,430 --> 00:09:06,670
and defined to get absolute zero.

144
00:09:07,190 --> 00:09:13,090
That means we have to do we have to add our teeth, get absolutely all methode into the model area.

145
00:09:13,490 --> 00:09:18,100
So already is actually providing all that in this direction that you have to follow.

146
00:09:18,140 --> 00:09:22,950
OK, that means here now we have to add this, we have to add this function in our model area.

147
00:09:23,510 --> 00:09:25,250
So now go to our model.

148
00:09:25,850 --> 00:09:27,470
So go to our model.

149
00:09:27,470 --> 00:09:30,980
So if you go to application and application, that is our model.

150
00:09:31,280 --> 00:09:35,240
So that the model area after this, OK, that means our mission model.

151
00:09:35,250 --> 00:09:42,500
So here, OK, here after this, I want to do I want to create another function as a dev and then our

152
00:09:42,500 --> 00:09:44,120
function name, our function name.

153
00:09:44,120 --> 00:09:45,830
I have defined as a get absolutely.

154
00:09:45,830 --> 00:09:46,730
Or so already.

155
00:09:46,730 --> 00:09:48,710
It's providing me this information.

156
00:09:48,710 --> 00:09:51,690
We have to create this function on our model area.

157
00:09:51,710 --> 00:09:54,460
So I just simply define our this method as a gate.

158
00:09:54,480 --> 00:09:55,490
Absolutely.

159
00:09:55,520 --> 00:09:56,050
All right.

160
00:09:56,390 --> 00:10:03,320
So now I want to do and define as I make the things as a self say, just simply defined as a self because

161
00:10:03,320 --> 00:10:05,330
of all I think you already know about it.

162
00:10:05,360 --> 00:10:10,610
Why I'm actually using that self because of all I have created another method, another function in

163
00:10:10,610 --> 00:10:11,890
our one of the class areas.

164
00:10:11,920 --> 00:10:17,190
If you create any function into the class area, then you have to make the things as a self, right.

165
00:10:17,570 --> 00:10:19,550
So now it is simply defined as a self.

166
00:10:19,550 --> 00:10:21,640
And then we have to do we have to return it.

167
00:10:23,660 --> 00:10:24,730
We have to return it.

168
00:10:24,740 --> 00:10:27,950
And before it ended here, I also want to return it with the reverse.

169
00:10:27,960 --> 00:10:29,600
So I think you already know about it.

170
00:10:29,600 --> 00:10:31,670
So I have to have the input that developed.

171
00:10:32,090 --> 00:10:40,550
So I just simplified the form and that Django and then that you oriels into the orders from the Urals.

172
00:10:40,580 --> 00:10:42,410
You have to import our divorce.

173
00:10:44,150 --> 00:10:45,970
OK, I just simply defined the reverse.

174
00:10:45,980 --> 00:10:47,750
So now I want to use this reverse.

175
00:10:47,750 --> 00:10:52,100
With this reverse I want to define that is already what that means here.

176
00:10:52,100 --> 00:10:54,860
I want to do in this form will be submitted.

177
00:10:54,860 --> 00:10:59,870
OK, like here, if you go here with this form that means a musician form will be submitted.

178
00:10:59,870 --> 00:11:01,940
I want to do this, will be directed to our home.

179
00:11:01,940 --> 00:11:09,350
OK, so if you want to display then in the reverse area, I want to do I want to pass our name.

180
00:11:09,350 --> 00:11:12,210
That means that you are still in the DRL.

181
00:11:12,320 --> 00:11:17,150
I have defined that name as a fast, so I just simply defined our fast step.

182
00:11:17,150 --> 00:11:22,730
And after that first step I want to do to pass it to our which pays our deposit to our index.

183
00:11:22,730 --> 00:11:25,490
So that is our name had defined this part as the index.

184
00:11:26,000 --> 00:11:28,400
So I just copied and now in our model.

185
00:11:28,410 --> 00:11:31,430
So here I just simply defined our index are different.

186
00:11:31,790 --> 00:11:35,090
So I just simply defining it and that's all you have to do.

187
00:11:35,090 --> 00:11:36,170
Now let's check this out.

188
00:11:36,170 --> 00:11:40,880
If you click the save all of us to fill out the check it.

189
00:11:40,880 --> 00:11:42,530
Yeah, everything is running well.

190
00:11:43,070 --> 00:11:46,460
So now I want to insert some of the data if you now go to our home.

191
00:11:47,440 --> 00:11:52,380
And you can see our previous data is already inside it, so now I want to add our new one.

192
00:11:52,390 --> 00:11:58,120
So now I just name it as a as a Johnny Carson.

193
00:12:00,440 --> 00:12:07,760
OK, and then I name it in a statement as a harmony, OK, just name it as a harmony to know if you

194
00:12:07,760 --> 00:12:09,250
want to add that musician.

195
00:12:09,440 --> 00:12:12,960
Yes, you can see snow perfectly in Saturday's data.

196
00:12:13,160 --> 00:12:14,540
So that is our John Connor.

197
00:12:14,570 --> 00:12:18,430
And here, if you go to this position, is not showing us a John Can't.

198
00:12:18,440 --> 00:12:20,070
And that is a harmony, a good friend.

199
00:12:20,420 --> 00:12:25,460
That means that we can see how much easily we can insert this data with using our model.

200
00:12:25,480 --> 00:12:27,200
So here I have created this model.

201
00:12:27,360 --> 00:12:30,160
I have created our this model as a clear view.

202
00:12:30,380 --> 00:12:33,380
So with this great view now, we can actually successfully insert the the.

203
00:12:34,040 --> 00:12:39,890
So here I load our form and also polygon that area is actually providing me some of the instruction

204
00:12:39,890 --> 00:12:40,850
that we have to add.

205
00:12:40,850 --> 00:12:46,700
These gave up so that you are a little of the self and here I return it when this data will be inserted

206
00:12:46,700 --> 00:12:49,100
then to be addicted to our Farstad index.

207
00:12:49,340 --> 00:12:54,260
That means you are still seem to have already defined our path as a home for the home.

208
00:12:54,260 --> 00:12:56,330
I have defined that name as the index part.

209
00:12:56,660 --> 00:13:01,520
So now you can see who in this data is inserted after that in said it is selected to our home base.

210
00:13:01,520 --> 00:13:01,830
Right.

211
00:13:02,360 --> 00:13:07,790
And also here, if you want to define this type of functionality, like when this our musician will

212
00:13:07,790 --> 00:13:12,750
be inserted, it should be directed towards a specific musician retail space with the idea.

213
00:13:12,800 --> 00:13:15,920
OK, so also if you want to defining it, you can defining it.

214
00:13:15,920 --> 00:13:19,360
Like right now I am actually past that things to the index.

215
00:13:19,370 --> 00:13:19,680
Right.

216
00:13:20,090 --> 00:13:25,190
So here I have already defined that things on here, the fast tablets rejected when this data will be

217
00:13:25,190 --> 00:13:29,310
inserted in this data will be redacted to our first step with the index piece.

218
00:13:29,750 --> 00:13:32,540
So now I want to pass it with our musician little space.

219
00:13:32,570 --> 00:13:38,210
So if you go to our URL into the URL here, you can see that the musician details, the musician details.

220
00:13:38,210 --> 00:13:43,250
Also, they have I have defined the idea that this will be the key to a specific one of the ideas,

221
00:13:43,370 --> 00:13:44,520
musician retail space.

222
00:13:44,810 --> 00:13:46,090
So now I want to use it.

223
00:13:46,460 --> 00:13:49,990
So here, if you want to pass it, then I also want to show you that things are OK.

224
00:13:49,990 --> 00:13:51,890
And I just simply defined as a musician.

225
00:13:51,890 --> 00:13:52,370
Details.

226
00:13:52,580 --> 00:13:58,210
And then here also we have to define one of the ideas, because here you can see I have defined already

227
00:13:58,220 --> 00:13:58,970
one of the ideas.

228
00:13:58,980 --> 00:14:01,280
So we have to also define all the idea on here.

229
00:14:01,640 --> 00:14:06,170
So if you want to define that idea, then you have to define that again with the key argument that in

230
00:14:06,180 --> 00:14:08,900
the KW and then argument Airds.

231
00:14:08,910 --> 00:14:09,290
Yes.

232
00:14:09,370 --> 00:14:11,610
OK, so with this, you can actually pass it.

233
00:14:11,630 --> 00:14:14,590
So here we have to do we have to parse out this picture.

234
00:14:15,230 --> 00:14:22,070
So I just simply define that RPK idea that means our IDM and then also make the things as a self that

235
00:14:22,070 --> 00:14:22,670
means self.

236
00:14:22,670 --> 00:14:25,460
And with the self you have to define your primary key again.

237
00:14:25,470 --> 00:14:27,170
That is our another primary key.

238
00:14:27,200 --> 00:14:28,630
That means there shall be our world.

239
00:14:28,630 --> 00:14:29,510
That means this one.

240
00:14:29,690 --> 00:14:31,520
And after that, our primary key.

241
00:14:31,810 --> 00:14:35,660
OK, so I just simply defined this part on particular that area.

242
00:14:35,720 --> 00:14:37,380
So that's all you have to do.

243
00:14:37,400 --> 00:14:38,560
Now let's check this out.

244
00:14:38,930 --> 00:14:42,530
If you now click, say I just click to save.

245
00:14:42,530 --> 00:14:45,740
Also before that was actually the key to our Fastweb step index.

246
00:14:45,770 --> 00:14:50,280
So now I want to read it to our musician little space with a specific idea.

247
00:14:50,330 --> 00:14:54,490
OK, that is when this musician actually created by default creating one of the ideas.

248
00:14:54,920 --> 00:14:57,270
So should be key to our that part better.

249
00:14:57,290 --> 00:14:58,490
First of all, I want to check it.

250
00:14:58,970 --> 00:15:00,230
Yeah, everything is well.

251
00:15:00,620 --> 00:15:03,080
Now go here, go to that admission.

252
00:15:03,110 --> 00:15:11,000
I want to define another one as a new test and I just put that name that will last name as a new list

253
00:15:11,000 --> 00:15:15,140
last and the instrument as a new test instrument.

254
00:15:15,500 --> 00:15:20,090
OK, so this step up, one of the name I have defined as a musician.

255
00:15:20,480 --> 00:15:21,220
Yes.

256
00:15:21,230 --> 00:15:25,840
Now, because if and now it's perfectly detected to our musician, details with it.

257
00:15:26,240 --> 00:15:28,200
So that is the musician I have created.

258
00:15:28,220 --> 00:15:33,140
So now for the reasons you can see, I defined as a musician details which will be paired with our ID.

259
00:15:33,500 --> 00:15:33,810
Right.

260
00:15:34,100 --> 00:15:37,370
So now it's perfectly rejected and we split that data on here.

261
00:15:37,370 --> 00:15:39,110
And if you go to the home, yeah.

262
00:15:39,180 --> 00:15:43,700
You can see so perfectly added software, we successfully complete our create position.

263
00:15:43,700 --> 00:15:47,920
How much easily we did that work with using our this model.

264
00:15:47,930 --> 00:15:49,840
So that is our clear view model.

265
00:15:49,940 --> 00:15:50,330
Right.

266
00:15:50,600 --> 00:15:54,110
So, you know, next video I want to discuss about how we can update this.

267
00:15:54,170 --> 00:15:56,960
It's also very much easy how we can do that work.

268
00:15:56,960 --> 00:15:59,870
In our next video, I show that things with the live example.

269
00:16:00,290 --> 00:16:01,750
So thanks for watching.

270
00:16:01,760 --> 00:16:03,500
I will see you in the next video.
