1
00:00:00,150 --> 00:00:01,760
Hello, friend, welcome back.

2
00:00:02,010 --> 00:00:08,230
In a previous video, we successfully complete our business, successfully updated our navigation bar.

3
00:00:08,490 --> 00:00:11,400
So now in this video, I want to work with our block.

4
00:00:11,700 --> 00:00:15,390
So into the block base here, we want to create some of the block.

5
00:00:15,390 --> 00:00:21,540
How can create how can your block, how can display your all that block list and also for the block

6
00:00:21,540 --> 00:00:23,520
detail space, everything in step by step.

7
00:00:23,520 --> 00:00:25,380
I will show you some friend here.

8
00:00:25,380 --> 00:00:30,570
I if you want to actually updated it from the back end, you can update it because of volume to the

9
00:00:30,570 --> 00:00:31,050
back end.

10
00:00:31,050 --> 00:00:31,920
Everything is ready.

11
00:00:32,130 --> 00:00:32,430
Right.

12
00:00:32,580 --> 00:00:37,950
But here I want to do want to create another form for our displays that means to when this user will

13
00:00:37,950 --> 00:00:38,670
be logged in.

14
00:00:39,150 --> 00:00:42,380
This user want to create some of the block, how can create it.

15
00:00:42,390 --> 00:00:44,280
So step by step will cover it.

16
00:00:44,280 --> 00:00:48,390
So for doing this, first of all, I want to do and to create some of the necessary file.

17
00:00:48,840 --> 00:00:51,840
So I have already complete our app logging portion.

18
00:00:51,840 --> 00:00:57,600
That means the authentication portion and that is our block cinder block before I have already created

19
00:00:57,600 --> 00:01:02,550
as a block listener and want to create some of the essential file I think is a new file.

20
00:01:02,790 --> 00:01:05,010
And now I want to do for create that block.

21
00:01:05,010 --> 00:01:11,600
I want to create another piece as a create, create, underscore, block dot as HTML.

22
00:01:11,610 --> 00:01:14,550
So that will be one of the page for create that blog.

23
00:01:14,850 --> 00:01:19,530
And also we will need to display our blog details.

24
00:01:20,160 --> 00:01:24,690
That will be as a blog underscore details, blog details.

25
00:01:24,690 --> 00:01:25,500
DOT is HTML.

26
00:01:25,860 --> 00:01:30,210
And if you want to update that means you've only read this blog for the edit blog.

27
00:01:30,210 --> 00:01:37,970
I want to create another page and I name it as the edit edit underscore blog, right blog not as HTML.

28
00:01:38,760 --> 00:01:41,970
It will be as a blog dartez html.

29
00:01:42,360 --> 00:01:48,160
And also if you want to create another page like which you this user right now I'm already logging with

30
00:01:48,170 --> 00:01:53,190
the test that is our user name, etc. So he's going to visible this user aspecific.

31
00:01:53,190 --> 00:01:56,190
All that blog, that blog is created by this user.

32
00:01:56,190 --> 00:02:00,000
If you want to display that on blog, then you can also do that work.

33
00:02:00,000 --> 00:02:02,820
Leadbitter, I want to create another piece and I.

34
00:02:02,820 --> 00:02:03,360
Mm.

35
00:02:03,360 --> 00:02:04,070
On my blog.

36
00:02:04,110 --> 00:02:09,960
OK, my underscore blocks because that will be as my rescue blog start this term also.

37
00:02:09,960 --> 00:02:12,000
Which blog is created by this user.

38
00:02:12,000 --> 00:02:16,750
I want to save it in our and also and visible visibility in our my blog statistical base.

39
00:02:17,250 --> 00:02:22,890
So now here first of all we have to do we have to add our initial all the things like extended our basis

40
00:02:22,890 --> 00:02:25,410
to email and then the title will be needed.

41
00:02:25,410 --> 00:02:25,790
Right.

42
00:02:26,100 --> 00:02:27,450
So better I copied.

43
00:02:27,450 --> 00:02:28,380
I copied.

44
00:02:28,830 --> 00:02:32,970
And now in our blog details, I pasted.

45
00:02:32,970 --> 00:02:42,300
It should be as a blog blog sorry, blog details resurvey as a blog.

46
00:02:42,300 --> 00:02:43,450
Details here.

47
00:02:43,500 --> 00:02:44,280
We don't need this.

48
00:02:44,280 --> 00:02:45,170
I will be it.

49
00:02:45,180 --> 00:02:47,940
That will be our bloddy blog and the resource and blog.

50
00:02:47,940 --> 00:02:48,270
Right.

51
00:02:48,840 --> 00:03:01,530
And also on that, that in our edit it will be an edit edit blog and then that is on my blog I posted

52
00:03:01,530 --> 00:03:06,570
it will be as my blog will be as my blog.

53
00:03:06,570 --> 00:03:06,960
Right.

54
00:03:06,960 --> 00:03:09,720
And then there is I want another one of the create blog.

55
00:03:09,900 --> 00:03:17,100
So that is extended our business to email and then it will be as a create create blog.

56
00:03:17,370 --> 00:03:17,870
Right.

57
00:03:17,880 --> 00:03:19,350
So that will be the create blog.

58
00:03:19,350 --> 00:03:21,510
That will your title and that is our body.

59
00:03:22,080 --> 00:03:25,040
Perfect now because it Savol everything is great.

60
00:03:25,590 --> 00:03:29,070
So right now, first of all, I want to do want to work with our create blog.

61
00:03:29,090 --> 00:03:30,930
So that means that we don't need this.

62
00:03:30,930 --> 00:03:33,750
I remove everything from here, the pages to email.

63
00:03:33,760 --> 00:03:34,530
We don't need this.

64
00:03:34,920 --> 00:03:37,860
So now we have to do we have to work in our view.

65
00:03:37,860 --> 00:03:38,210
Right.

66
00:03:38,400 --> 00:03:42,450
That means in our blog log into the app blog as a result of you.

67
00:03:42,810 --> 00:03:46,650
So friend, before I have already discussed all the things we do, the function best.

68
00:03:46,650 --> 00:03:51,420
Buzo and also add another section I have discussed about the Clausewitz's view right now.

69
00:03:51,420 --> 00:03:55,910
If our blog I wanted to use that Clausewitz's view that it should be easy.

70
00:03:56,280 --> 00:03:59,190
So right now to do and to use it, want to use it.

71
00:03:59,190 --> 00:04:01,320
First of all, whose file is essential?

72
00:04:01,320 --> 00:04:03,000
I want to do I want to load it.

73
00:04:03,000 --> 00:04:08,490
So everything I have already discussed about the things we do like that, the Clarinda and the render

74
00:04:08,490 --> 00:04:09,080
input.

75
00:04:09,090 --> 00:04:13,020
So here from that was I thought girls from the circus.

76
00:04:13,020 --> 00:04:15,290
I also need that SCDP response redirect.

77
00:04:15,660 --> 00:04:21,930
So I want to do as loaded as a P response response redirect.

78
00:04:22,650 --> 00:04:22,970
Right.

79
00:04:22,990 --> 00:04:28,350
So that will be as a strategic response to the attack and also for the classified review that have some

80
00:04:28,350 --> 00:04:28,950
of the class.

81
00:04:28,950 --> 00:04:34,760
As I create a new class of review class that list view the details, view, write I want to do and actually

82
00:04:34,770 --> 00:04:41,130
load everything, because here for our this blog, I want to create order and the court application,

83
00:04:41,130 --> 00:04:43,820
which I have already discussed about the things we use right now.

84
00:04:43,830 --> 00:04:46,790
We will use it for our this project.

85
00:04:47,010 --> 00:04:51,920
So from the Django that that is all the default one and then the views.

86
00:04:51,930 --> 00:04:59,400
So from the general views then that generic writes from the the Django views and that.

87
00:05:00,010 --> 00:05:06,550
And from the general accounting, put all that our cloud based view, like as a create that is a create

88
00:05:06,550 --> 00:05:11,640
view and also for the update to have that underclasses update view.

89
00:05:12,700 --> 00:05:13,140
Right.

90
00:05:13,150 --> 00:05:19,990
And then the list for the list, they have their other classes as a list view and also for the details

91
00:05:20,270 --> 00:05:23,860
that the that plus other details view details.

92
00:05:24,160 --> 00:05:25,170
Sorry, detailed view.

93
00:05:25,180 --> 00:05:25,460
Right.

94
00:05:25,660 --> 00:05:27,520
So that will be the detailed view.

95
00:05:27,820 --> 00:05:31,810
And then also there is another one for the template.

96
00:05:31,810 --> 00:05:34,740
I want to learn to add another class as a template.

97
00:05:34,750 --> 00:05:39,830
So that's all the default, as I told you, everything in our Django views and the generic area.

98
00:05:40,210 --> 00:05:41,800
So I take it as a template.

99
00:05:43,720 --> 00:05:45,330
Everything will use it.

100
00:05:45,340 --> 00:05:51,280
So then it will be very much clear to you and also for the Delek I want to do undertake around the class

101
00:05:51,280 --> 00:05:55,940
as a direct view class dialect and then view class.

102
00:05:56,080 --> 00:05:56,470
Right.

103
00:05:56,520 --> 00:06:03,550
So here from our general view, generic, I want to do on import our all the default class for the create

104
00:06:03,550 --> 00:06:06,910
view, the updated view from the data for display.

105
00:06:06,920 --> 00:06:11,770
That leaves that there is a list view for details that will display the details.

106
00:06:12,070 --> 00:06:13,360
That is our little view.

107
00:06:13,360 --> 00:06:16,330
And then load the template that is a template view.

108
00:06:16,330 --> 00:06:18,490
And for the direct data that is a direct view.

109
00:06:18,670 --> 00:06:19,020
Right.

110
00:06:19,390 --> 00:06:24,460
And also I want to load our all that model that underpins our model.

111
00:06:24,460 --> 00:06:29,380
I have already created as a blog that is a comment and that is all lies.

112
00:06:29,710 --> 00:06:32,440
So I also want to take all that our class.

113
00:06:32,440 --> 00:06:34,470
So that is in our blog.

114
00:06:35,050 --> 00:06:42,400
First of all, that is will be our form and from our blog and then the models are there.

115
00:06:42,400 --> 00:06:44,250
Then you can also use that as a comma.

116
00:06:44,260 --> 00:06:46,670
So I try to use it as a model.

117
00:06:47,050 --> 00:06:51,370
So from what AB blog models from here, I don't even put our blog.

118
00:06:51,850 --> 00:06:54,130
I want to input our comment.

119
00:06:55,000 --> 00:06:58,060
So make that your spelling is correct.

120
00:06:58,060 --> 00:07:01,140
There is a blog that is common and there is a likes.

121
00:07:01,150 --> 00:07:01,460
Right.

122
00:07:01,930 --> 00:07:04,060
So that's all we needed.

123
00:07:04,090 --> 00:07:07,600
So I simply lauded as a blog comment and the likes.

124
00:07:08,000 --> 00:07:13,690
And also I want to take another one and take that from and the Django.

125
00:07:14,500 --> 00:07:19,210
Django from the Django and then you what.

126
00:07:19,720 --> 00:07:22,570
And from here and the being put that reverse.

127
00:07:23,080 --> 00:07:25,180
OK, make sure spelling is correct.

128
00:07:25,180 --> 00:07:31,590
So there is the reverse and there is also another one as a reverse lazy reverse underscore lazy.

129
00:07:31,720 --> 00:07:37,640
So we'll use it when you use it only because of all the things we do like that is another one of them

130
00:07:37,780 --> 00:07:38,980
function as a reverse.

131
00:07:38,980 --> 00:07:40,060
Lazy to note.

132
00:07:40,090 --> 00:07:41,140
I just simply take it.

133
00:07:41,410 --> 00:07:44,650
And also I want to do want to take our locking the word.

134
00:07:44,800 --> 00:07:54,190
So that is our form and the Django and then the country cantrip from the Django country and the old

135
00:07:54,190 --> 00:07:58,510
and the decorator's right for the jerkwater.

136
00:07:58,510 --> 00:08:05,670
That is the import as a logi good underscore good looking very good so far.

137
00:08:05,690 --> 00:08:10,010
And this locking we could actually use for the functional base view.

138
00:08:10,120 --> 00:08:16,300
OK, so if you want to use this, locking the functionality in Glasvegas view, then it shall be a little

139
00:08:16,300 --> 00:08:16,980
bit different.

140
00:08:17,230 --> 00:08:23,290
So then here you have to do we have to use it as a form and that will be the same as it from the Django

141
00:08:23,560 --> 00:08:24,830
and then the country.

142
00:08:25,030 --> 00:08:33,420
Sorry, Cantrip and for the country and then the art and form the order that have also another one as

143
00:08:33,430 --> 00:08:38,550
a magazine mixes and found the the sense you have to have to import this.

144
00:08:38,560 --> 00:08:39,850
That will be as a logi.

145
00:08:40,600 --> 00:08:45,360
That will be the locking and required good maximum.

146
00:08:46,600 --> 00:08:48,400
OK, that will be as a magazine.

147
00:08:48,880 --> 00:08:53,260
So if you use that functional view then you have to use as a locking the card.

148
00:08:53,260 --> 00:08:57,750
And if you use that with you, then you have to use that a locking the magazine.

149
00:08:58,000 --> 00:08:59,160
So it's pretty much the same.

150
00:08:59,200 --> 00:09:01,440
OK, that means that is actually the same logic.

151
00:09:01,450 --> 00:09:03,930
So now we will apply it because of Lear.

152
00:09:03,940 --> 00:09:05,710
I want to work with our class.

153
00:09:05,750 --> 00:09:11,320
Westview OK, so for the class Westview, I want to use our this locking the card maximum.

154
00:09:11,620 --> 00:09:16,040
So that is from our Django country and the maximum perfect.

155
00:09:16,180 --> 00:09:22,620
So now first of all, for our create block, for our tiered block, I want to create one of the functions.

156
00:09:22,620 --> 00:09:25,240
So that means here I will look on the class view function.

157
00:09:25,240 --> 00:09:27,790
That is the class, right.

158
00:09:27,790 --> 00:09:32,880
There is a class and then I name it as a create block, create block.

159
00:09:32,890 --> 00:09:37,120
So they step up on the class function, I declared.

160
00:09:37,360 --> 00:09:43,510
And here also we have to do we have to pass our create that because I want to load our create class.

161
00:09:43,750 --> 00:09:45,700
So I just loaded our view.

162
00:09:45,880 --> 00:09:51,760
And also if you want to access that weird view, then this user must have the log in second to make

163
00:09:51,760 --> 00:09:55,420
that as a locking, because as I told you, right now you are using it.

164
00:09:55,720 --> 00:09:57,460
So here you have to have to pass it.

165
00:09:57,460 --> 00:09:59,460
In particular, that area that means.

166
00:09:59,710 --> 00:10:03,980
Now, if you want to access this class function, then you must have to the logging.

167
00:10:04,010 --> 00:10:06,400
So this is automatically be checked.

168
00:10:06,590 --> 00:10:09,560
And then I loaded our in our class.

169
00:10:09,570 --> 00:10:11,090
That means our Class B class.

170
00:10:11,270 --> 00:10:16,030
OK, so I load it and then we have to do we have to load our model.

171
00:10:16,340 --> 00:10:18,990
So with this model, I want to load our blog.

172
00:10:19,130 --> 00:10:22,440
That means I have already loaded our block.

173
00:10:22,460 --> 00:10:23,630
That means I have models.

174
00:10:23,630 --> 00:10:24,790
I want to load our blocks.

175
00:10:24,790 --> 00:10:29,450
So if you go to our model, if the model for the block, I have already declared some of the field.

176
00:10:29,460 --> 00:10:34,600
So I think we can actually access all that feel right so we can access all the field with this block.

177
00:10:34,610 --> 00:10:40,020
So I loaded it on here and also we need to load all the template.

178
00:10:40,040 --> 00:10:44,000
So here I want to do a load of the template as a create block dot estimates.

179
00:10:44,000 --> 00:10:48,590
If you want to load this template in Clausewitz's view, what exactly you have to do?

180
00:10:48,860 --> 00:10:56,240
You have to name it as a template, name a template under its good name and then your location that

181
00:10:56,240 --> 00:10:57,110
is in our app.

182
00:10:57,110 --> 00:11:04,880
Log into the app, log from here and load out, create, create, underscore, block, dot estimates.

183
00:11:05,870 --> 00:11:11,540
And I hope it's very clear to you so far, except this we have to do we have to create all the.

184
00:11:11,570 --> 00:11:12,330
You are right.

185
00:11:12,350 --> 00:11:17,480
So now I want to do and to create on the wall in our blog that is our else.

186
00:11:17,490 --> 00:11:24,020
So here I have already declared on the app name as a block and I want to do to create another URL.

187
00:11:24,290 --> 00:11:26,380
So before here I have to use that class.

188
00:11:26,650 --> 00:11:28,970
That is the functional view right now.

189
00:11:28,970 --> 00:11:33,800
If you create some the root for the Clausewitz's view, I think you already remember it.

190
00:11:33,830 --> 00:11:37,200
What exactly you have to do to make that she created the comma.

191
00:11:37,880 --> 00:11:39,430
OK, that will be as a comma.

192
00:11:39,440 --> 00:11:42,950
And now I named that our part will be at the right.

193
00:11:43,640 --> 00:11:43,930
OK.

194
00:11:43,940 --> 00:11:44,410
Right.

195
00:11:44,420 --> 00:11:46,300
And that will be our Warrell.

196
00:11:46,340 --> 00:11:51,220
And then into the vaidya I have to get out of the class was view as a creative blog.

197
00:11:51,230 --> 00:11:51,480
Right.

198
00:11:51,860 --> 00:11:55,430
So now I name it as our views into the views.

199
00:11:55,430 --> 00:11:57,070
That will be our key blog.

200
00:11:57,410 --> 00:12:02,480
So if you load this function, that means our class function, then what exactly you have to do?

201
00:12:02,490 --> 00:12:06,410
You have to make that as a dot as underscore you.

202
00:12:06,620 --> 00:12:07,070
Right.

203
00:12:07,580 --> 00:12:09,230
That will be as ArcView.

204
00:12:09,530 --> 00:12:11,780
I have already discussed about the things we do.

205
00:12:11,780 --> 00:12:16,970
If you want to create some of the URL for your class, that is the class view function, then you have

206
00:12:16,970 --> 00:12:17,330
to do it.

207
00:12:17,330 --> 00:12:19,970
You have to write down like that or that is a function name.

208
00:12:19,970 --> 00:12:27,170
And then as you and then our name, our name will be I just made me do the create create underscore

209
00:12:27,170 --> 00:12:27,590
block.

210
00:12:27,710 --> 00:12:31,780
OK, I name it as a clear block, so that will be our biggest problem.

211
00:12:32,060 --> 00:12:33,880
So now I want to do I want to load it.

212
00:12:33,890 --> 00:12:38,090
Let me say I want to load out this space in our Bedstemor.

213
00:12:38,090 --> 00:12:41,300
That means here I want to create another menu.

214
00:12:41,420 --> 00:12:48,260
OK, so I want to create another man in our that is our basic HTML into the template that is the basis

215
00:12:48,260 --> 00:12:48,730
html.

216
00:12:49,310 --> 00:12:50,720
So that is a logo.

217
00:12:50,720 --> 00:12:51,380
That is a profile.

218
00:12:51,380 --> 00:12:55,370
That is when this user will be locked in and after that then it should be visible.

219
00:12:55,370 --> 00:12:55,640
Right.

220
00:12:55,640 --> 00:12:57,920
For the reasons I able to do and copy it.

221
00:12:58,400 --> 00:13:03,110
I take another one, I take another one and I just name it as a right block.

222
00:13:05,060 --> 00:13:06,080
OK, I do.

223
00:13:06,080 --> 00:13:10,490
Ah I write block and then I want to load our.

224
00:13:10,500 --> 00:13:15,110
You also have already created that you are that is our apt name as a block.

225
00:13:15,860 --> 00:13:19,130
So that will be our blog and the app block area.

226
00:13:19,130 --> 00:13:25,760
I have created that name as a create blocks I copied and now I post it OK, so I just simply passed

227
00:13:25,760 --> 00:13:25,900
it.

228
00:13:26,330 --> 00:13:30,890
Now if you click as a Savol so that will be displayed in our block area.

229
00:13:30,950 --> 00:13:40,040
So now if you refresh it, so now showing some of the error, make sure I open it now because it's not

230
00:13:40,040 --> 00:13:46,580
showing on the already from general view, generic import and they have postponed the error as a training

231
00:13:46,580 --> 00:13:49,790
comma not allowed without separating.

232
00:13:49,790 --> 00:13:57,950
That means into the view in the view area here I have used as an import.

233
00:13:57,950 --> 00:14:00,580
So that is our create here.

234
00:14:00,590 --> 00:14:02,630
Maybe I added only space.

235
00:14:02,630 --> 00:14:06,500
You can see I, I don't know about you space, but trying to make the things into the same line.

236
00:14:07,130 --> 00:14:10,700
OK, that means that the same line in particular.

237
00:14:10,710 --> 00:14:11,630
Same line area.

238
00:14:11,630 --> 00:14:12,980
I want to use it now.

239
00:14:12,980 --> 00:14:15,200
Let's check this out if you're not going to save all.

240
00:14:18,530 --> 00:14:22,640
You can see his snow perfectly running, so here, friend, I have added some of these space, right.

241
00:14:22,660 --> 00:14:28,730
So here I am read and I just read that things from down the line, the for the reasons actually is getting

242
00:14:28,730 --> 00:14:29,360
this error.

243
00:14:29,390 --> 00:14:34,250
So make sure you don't need to add any special right down under the same line.

244
00:14:34,280 --> 00:14:37,080
OK, so now acquisitional perfectly now loaded.

245
00:14:37,100 --> 00:14:43,810
So now if you click the save all now if you refresh it you can see it's a perfectly loaded our side.

246
00:14:44,120 --> 00:14:46,820
So here that is our right blog is added.

247
00:14:46,820 --> 00:14:52,970
So I added that things in our basic HTML so that the way the stimulus bill in this user will be authenticated

248
00:14:53,240 --> 00:14:54,450
then it will be visible.

249
00:14:54,470 --> 00:14:54,730
Right.

250
00:14:54,740 --> 00:14:54,950
That is.

251
00:14:54,950 --> 00:14:55,340
All right.

252
00:14:55,340 --> 00:14:55,730
Blog.

253
00:14:55,760 --> 00:15:00,530
So now in our view into the video, first of all, that is our I get that model data.

254
00:15:00,560 --> 00:15:03,720
So now I want to do want to get all that our model.

255
00:15:03,740 --> 00:15:09,350
That means if you go to our model into the model for the blog that have on the field, I want to get

256
00:15:09,350 --> 00:15:10,330
all the Darfield.

257
00:15:10,460 --> 00:15:14,410
So if you want to get that field here, you have to do that down as a field.

258
00:15:15,650 --> 00:15:18,390
So I take our all first time.

259
00:15:18,410 --> 00:15:23,660
So if you want to get that for all field, I have already, because of all the things we do online and

260
00:15:23,660 --> 00:15:26,600
then all I want to do is to get all that our field.

261
00:15:26,630 --> 00:15:29,720
So now we have to do we have to work in our discrete block.

262
00:15:29,730 --> 00:15:31,680
That means, you know, create blowtorches.

263
00:15:31,710 --> 00:15:36,320
Tamalpais So here we have to do we have to load one of the form into the form area.

264
00:15:36,530 --> 00:15:41,900
And if you load that form automatically, we will get all that our field and automatically it's visible

265
00:15:41,900 --> 00:15:42,550
on here.

266
00:15:42,680 --> 00:15:43,000
Right.

267
00:15:43,370 --> 00:15:47,330
So better right now I have to do I want to continue this process.

268
00:15:47,330 --> 00:15:52,250
In our next video, we create our D block from base so we can do that work.

269
00:15:52,310 --> 00:15:54,580
I will show you that things with a live example.

270
00:15:54,890 --> 00:15:58,190
So thanks for watching and I'll see you in the next video.
