1
00:00:00,210 --> 00:00:00,930
Hello, friend.

2
00:00:00,960 --> 00:00:01,710
Welcome back.

3
00:00:02,130 --> 00:00:06,950
In a previous video I have already discussed about that, things with you, how Django worked.

4
00:00:07,260 --> 00:00:12,240
So as I told you, Django actually work with the and the that is the model du template.

5
00:00:12,240 --> 00:00:14,940
Patton So now we learned more clearly.

6
00:00:15,060 --> 00:00:16,450
OK, so don't worry.

7
00:00:16,530 --> 00:00:19,280
As I told you, step by step, everything will be more clear to use.

8
00:00:19,290 --> 00:00:20,490
Right now we don't need this.

9
00:00:20,490 --> 00:00:22,370
I just simply the don't save.

10
00:00:22,830 --> 00:00:29,290
And now if you go to our template, that means we have already installed one on the back, one of the

11
00:00:29,290 --> 00:00:29,770
packages.

12
00:00:29,790 --> 00:00:31,020
So that is actually our project.

13
00:00:31,020 --> 00:00:31,350
Right.

14
00:00:31,350 --> 00:00:32,220
So that is our fault.

15
00:00:32,580 --> 00:00:35,540
So that is one of the default on the page is now loaded.

16
00:00:35,560 --> 00:00:42,740
So right now I want to do an actual change it like here if you want to add the about the enter.

17
00:00:43,020 --> 00:00:44,250
So that is one of the.

18
00:00:44,250 --> 00:00:44,710
You are.

19
00:00:44,710 --> 00:00:45,640
All right.

20
00:00:45,780 --> 00:00:50,210
So that is one of the orders of what exactly that things is happening on here.

21
00:00:50,550 --> 00:00:54,540
So when you actually send some of the requests, like right now, you can see it's not showing as a

22
00:00:54,540 --> 00:00:58,430
page not found because of all he didn't get any method.

23
00:00:58,450 --> 00:01:00,510
You consider the request one of the method.

24
00:01:00,520 --> 00:01:01,750
So that is our request.

25
00:01:02,340 --> 00:01:08,000
So when you pass any waddill, then first of all, it will be redacted to the view into the view area.

26
00:01:08,010 --> 00:01:11,980
If you get any data, then it should be displayed, OK, should be displayed.

27
00:01:12,060 --> 00:01:17,610
Some of the template right there should be show some the data or other than if there have any database

28
00:01:17,610 --> 00:01:23,460
related issues for us to follow till we get to the view area and found to the view it's actually getting

29
00:01:23,460 --> 00:01:28,410
all the data from the database and get that data and visibility into the template area.

30
00:01:28,770 --> 00:01:31,020
So right now I don't have any database.

31
00:01:31,020 --> 00:01:34,260
So right now I want to show some of the data.

32
00:01:34,320 --> 00:01:37,350
OK, so make sure you understand that part.

33
00:01:37,350 --> 00:01:41,670
That means when you actually pass any warrell is to be addicted to one of the view bays.

34
00:01:42,060 --> 00:01:47,880
So but if you go to our Django project into the general project here, you can see there have no actually

35
00:01:47,880 --> 00:01:48,810
the view file.

36
00:01:49,020 --> 00:01:50,420
So they have the equals file.

37
00:01:50,820 --> 00:01:57,060
As I told you before, Django actually working with the apps like you can create multiple apps for your

38
00:01:57,060 --> 00:01:58,010
multiple module.

39
00:01:58,030 --> 00:02:02,310
So when you create any app then into the app folder, you will get that view file.

40
00:02:02,520 --> 00:02:05,820
So right now here you can see here they have no view.

41
00:02:05,820 --> 00:02:11,850
So they have only one file as you and the other area that is actually our part by default on the part

42
00:02:11,850 --> 00:02:12,630
as an admin.

43
00:02:12,960 --> 00:02:15,180
So right now and doing to create one of the pot.

44
00:02:15,600 --> 00:02:19,080
So that is a clear path I want to create as a board.

45
00:02:19,080 --> 00:02:23,260
If you want to create another part of the contact, you can everything you have to do.

46
00:02:23,260 --> 00:02:25,470
We have to add that you are all in this.

47
00:02:25,470 --> 00:02:27,500
You are the area that is our main model.

48
00:02:27,540 --> 00:02:28,690
You are right.

49
00:02:29,100 --> 00:02:32,550
So now here I want to do I want to create one of the wall.

50
00:02:32,560 --> 00:02:37,740
So that is a what else says I told you when you actually pass that hour, you really should be past

51
00:02:37,740 --> 00:02:39,280
that request to one of the view.

52
00:02:39,510 --> 00:02:42,090
So right now, the follow on that have no view file.

53
00:02:42,090 --> 00:02:42,410
Right.

54
00:02:42,420 --> 00:02:44,870
So no one to create one of the view file.

55
00:02:45,270 --> 00:02:50,820
That means here in particular, this folder area, I want to create one of the new file software.

56
00:02:50,820 --> 00:02:52,380
And as I told you, don't worry.

57
00:02:52,380 --> 00:02:55,020
Everything is step by step will be more clear to you.

58
00:02:55,290 --> 00:02:57,330
Like here I created one of the views file.

59
00:02:57,690 --> 00:03:01,530
So you have to write down the views of views by.

60
00:03:01,530 --> 00:03:04,450
So that is actually the extension of the python that they are pice.

61
00:03:04,460 --> 00:03:06,660
So I just simply created on The View by.

62
00:03:07,080 --> 00:03:11,310
So when you actually pass that request, first of all, we have to do we have to create all the method

63
00:03:11,310 --> 00:03:14,280
for this issue will dictate to our view page as I told you.

64
00:03:14,280 --> 00:03:14,570
Right.

65
00:03:14,790 --> 00:03:20,870
So now you can see for the reasons here I have created by a few file that is a clear view start by simply

66
00:03:20,910 --> 00:03:21,960
the views that area.

67
00:03:21,960 --> 00:03:27,300
First of all, I wanted to create one of the function you can name it as a function or rather then you

68
00:03:27,300 --> 00:03:31,250
can name it as a method to now I just name it as a function.

69
00:03:31,260 --> 00:03:35,040
So I just if you want to create that function, you have to add it as a def.

70
00:03:35,040 --> 00:03:37,230
And I just named that function name as a whole.

71
00:03:37,710 --> 00:03:43,320
Whatever he wants right now, I just name it on the function name as a form seal to the function area.

72
00:03:43,440 --> 00:03:48,230
First of all, it's actually past one of the parameters of this parameter as a request parameter.

73
00:03:48,240 --> 00:03:50,820
So here you have to do we have to pass that request.

74
00:03:51,120 --> 00:03:57,090
So I just simply pass one of the parameter as a request parameter, OK, and then here you have to do

75
00:03:57,270 --> 00:04:01,870
the right thing to actually show some of the message lately.

76
00:04:01,890 --> 00:04:03,810
I will also add some of the template.

77
00:04:04,110 --> 00:04:08,010
So if you want to show some of the returns on the string message, then you have to do we have to write

78
00:04:08,010 --> 00:04:08,940
down as a return.

79
00:04:09,510 --> 00:04:14,070
So I just simply added the return and return our EDP response.

80
00:04:14,070 --> 00:04:14,420
Right.

81
00:04:14,430 --> 00:04:18,150
That means here we have to pass it with our EDP response.

82
00:04:18,540 --> 00:04:20,180
So here they have also an update.

83
00:04:20,250 --> 00:04:27,750
Another method as stupid as I just simply added the EDP response right there is our response.

84
00:04:27,780 --> 00:04:34,110
So with this EDP response, I want to show some Distin data that this is our home base.

85
00:04:34,710 --> 00:04:40,770
So this type of one of the interesting data I want to visible and here, if you want to use that SCDP

86
00:04:40,770 --> 00:04:43,110
response, you have to also import it.

87
00:04:43,350 --> 00:04:44,550
So that is default one.

88
00:04:44,550 --> 00:04:52,880
So here you have to import from Django, OK, from Django and then the SCDP.

89
00:04:53,560 --> 00:04:56,250
So from the Django is TDP.

90
00:04:56,400 --> 00:04:59,520
You have to we have to import our DWB response.

91
00:05:00,050 --> 00:05:06,610
That means this is the response that actually I have used on here, and I hope everything is very much

92
00:05:06,620 --> 00:05:08,800
clear to you, so that is our default one.

93
00:05:09,050 --> 00:05:15,920
So from the default language TDP, I import one of the method glass as our SCDP response.

94
00:05:16,160 --> 00:05:22,220
So I have created one of the Methode as a whole method and the Matsudaira by default use that have one

95
00:05:22,220 --> 00:05:24,890
of the parameter as it exists for the reasons here.

96
00:05:24,890 --> 00:05:26,170
I just pass that request.

97
00:05:26,180 --> 00:05:32,750
Right, and then I just simply return one of the estin data that means our shall be displayed our with

98
00:05:32,750 --> 00:05:33,990
the EDP response.

99
00:05:34,010 --> 00:05:36,880
So here I just simply display our data.

100
00:05:37,220 --> 00:05:42,510
OK, and also to create another one, I want to create another one for our about face.

101
00:05:42,530 --> 00:05:48,350
That means I want to create another method as about so I just put that function name as a dev about.

102
00:05:48,350 --> 00:05:51,080
And also here we have to pass that request.

103
00:05:51,110 --> 00:05:55,960
That means our parameter will be also one of the parameters of this parameter.

104
00:05:55,970 --> 00:05:56,960
You have to pass it.

105
00:05:57,230 --> 00:06:03,740
And then also for this, I want to return one of the same SCDP response data and it should be displayed.

106
00:06:04,220 --> 00:06:05,200
It should be displayed.

107
00:06:05,270 --> 00:06:12,560
And then the text that this is our about base, OK, this is about base.

108
00:06:12,560 --> 00:06:15,320
And also I want to take another one.

109
00:06:16,100 --> 00:06:19,820
I want to take another one that means another function.

110
00:06:19,820 --> 00:06:21,920
And I just named that function as a contact.

111
00:06:22,730 --> 00:06:24,440
So that will be our contact.

112
00:06:24,440 --> 00:06:26,450
And then the requests return.

113
00:06:26,450 --> 00:06:28,310
It will be our contact base.

114
00:06:30,200 --> 00:06:30,520
Right.

115
00:06:30,530 --> 00:06:32,100
So it'll be as a contact base.

116
00:06:32,390 --> 00:06:32,970
Perfect.

117
00:06:32,990 --> 00:06:34,970
So now we have to do we have to create that.

118
00:06:35,110 --> 00:06:35,630
All right.

119
00:06:35,660 --> 00:06:39,410
So as I told you, we knew like that is a clearer about.

120
00:06:39,410 --> 00:06:39,740
Right.

121
00:06:40,020 --> 00:06:46,520
And also, if you click on the form, like if you click the horns right now, they have no file as a

122
00:06:46,520 --> 00:06:46,760
home.

123
00:06:46,760 --> 00:06:48,380
So you should be past that request.

124
00:06:48,380 --> 00:06:52,450
To our view, that means here it should be possible, this method area.

125
00:06:52,460 --> 00:06:54,470
So that is our place should be visible.

126
00:06:54,470 --> 00:06:54,710
Right.

127
00:06:54,740 --> 00:06:57,890
So for the regions here, we have to do we have to actually create our this.

128
00:06:58,050 --> 00:06:58,810
All right.

129
00:06:59,030 --> 00:07:00,430
So that is our home, Eurail.

130
00:07:00,980 --> 00:07:04,730
So now go to our portfolio and that is where you are, right.

131
00:07:05,060 --> 00:07:06,350
So right now, we don't need this.

132
00:07:06,350 --> 00:07:08,700
So that is actually all that comment.

133
00:07:08,810 --> 00:07:09,180
OK.

134
00:07:09,200 --> 00:07:11,120
So I just simply remove it.

135
00:07:11,420 --> 00:07:12,770
So that is our Django.

136
00:07:12,770 --> 00:07:13,530
That is our part.

137
00:07:13,880 --> 00:07:19,880
So I have created one of the file that I have created on the file as a views, but into the what how

138
00:07:19,880 --> 00:07:22,760
they will know that they have done what the file has a view.

139
00:07:22,780 --> 00:07:25,580
So for the reasons here we have to do, we have to import it.

140
00:07:25,580 --> 00:07:25,900
Right.

141
00:07:25,910 --> 00:07:28,000
We have to import our this view file.

142
00:07:28,580 --> 00:07:33,860
So because of all here, we have to create the connection to the what else to the view.

143
00:07:34,130 --> 00:07:38,180
So for the reasons here, I want to do I want to get it out the from and from.

144
00:07:38,180 --> 00:07:41,960
That is our same directories right there in our assembly area.

145
00:07:41,960 --> 00:07:47,840
For the regions here, you have to have to only add that one of the dot, OK, that means the same directly.

146
00:07:47,840 --> 00:07:53,680
And from here I want to do on the input our which file I want to import our D views file.

147
00:07:54,020 --> 00:07:56,710
So no, I just simply added our these views file.

148
00:07:57,170 --> 00:07:58,940
I hope you can will understand about it.

149
00:07:59,450 --> 00:08:04,520
So right now we have created that connection of our with our views.

150
00:08:04,530 --> 00:08:10,180
So from here I want to input our views file so no one to do and to create a sound.

151
00:08:10,760 --> 00:08:11,770
You are apart.

152
00:08:11,780 --> 00:08:13,310
So here after that.

153
00:08:13,490 --> 00:08:15,530
After that I just name it as a part.

154
00:08:15,920 --> 00:08:22,520
And the part area, I just simply, first of all, added one of the name and I just name it as a home.

155
00:08:22,520 --> 00:08:25,040
OK, that means the homeslice that will be ARTPOP.

156
00:08:25,310 --> 00:08:31,210
And also after that here we have to do we have to add what exactly should we get that data that means

157
00:08:31,210 --> 00:08:31,400
something.

158
00:08:31,430 --> 00:08:33,910
Our view I want to access our this method.

159
00:08:33,920 --> 00:08:34,210
Right.

160
00:08:34,220 --> 00:08:35,660
That is our home method.

161
00:08:35,990 --> 00:08:37,310
So I want to access it.

162
00:08:37,610 --> 00:08:41,060
So if you want to access it, then you have to do you have to use our.

163
00:08:41,090 --> 00:08:42,200
With these views.

164
00:08:42,770 --> 00:08:43,120
Right.

165
00:08:43,130 --> 00:08:46,660
With these views, I want to do I want to access our which method.

166
00:08:46,790 --> 00:08:47,990
That means we use function.

167
00:08:47,990 --> 00:08:49,610
I want to access our home function.

168
00:08:50,000 --> 00:08:50,300
Right.

169
00:08:50,330 --> 00:08:53,060
So I just simply added our home function.

170
00:08:53,690 --> 00:08:56,470
So friend, I think everything is very much clear to you.

171
00:08:56,480 --> 00:08:58,550
So that's all you have to do.

172
00:08:58,790 --> 00:09:00,040
So now let's check this out.

173
00:09:00,050 --> 00:09:05,610
If you click as save all, I just need to save all and make sure you run your server.

174
00:09:06,290 --> 00:09:08,870
So right now, our server is now running.

175
00:09:08,880 --> 00:09:13,190
So now if you refresh it like here, enter.

176
00:09:13,790 --> 00:09:15,250
Yes, you can see better.

177
00:09:15,260 --> 00:09:16,310
I just put a little bit.

178
00:09:17,800 --> 00:09:23,480
Percent that I meet, so that is you can see now showing us that this is our home base.

179
00:09:24,070 --> 00:09:25,870
I hope you can well understand about it.

180
00:09:25,990 --> 00:09:32,770
And so, as I told you, when you pass any case that you should be elected to our which position is

181
00:09:32,770 --> 00:09:35,890
subjected to all this view seem to the viewing area.

182
00:09:35,900 --> 00:09:40,320
I have created one of the functions that is our home function in the home function area.

183
00:09:40,330 --> 00:09:42,150
I have created what Daddy done.

184
00:09:42,160 --> 00:09:46,600
I just simply done our EDP response and this is our home base.

185
00:09:46,910 --> 00:09:50,170
So for the reasons no consistent showing our this is our home base.

186
00:09:50,500 --> 00:09:56,290
And also if you make that about because enters right now, you can see suffering at the pace not found

187
00:09:56,290 --> 00:10:01,390
because of all I and I find any our base that means any other parts.

188
00:10:01,390 --> 00:10:05,710
And I'll go to our you drill into the well I just simply copy it.

189
00:10:06,250 --> 00:10:13,270
And now I just simply based I just made me desert about and then in our views into the viewing area,

190
00:10:13,270 --> 00:10:16,010
I have created one of the functions for the about that.

191
00:10:16,070 --> 00:10:17,310
Is this about right.

192
00:10:17,320 --> 00:10:24,490
So now here I just simply name it as about and also I name another part, I just put that part as a

193
00:10:24,490 --> 00:10:25,120
contact.

194
00:10:26,260 --> 00:10:27,660
OK, contact us.

195
00:10:27,670 --> 00:10:29,320
So that will be our part.

196
00:10:29,320 --> 00:10:35,490
And into the view area I have created on of the function, I have created that function name as a contact.

197
00:10:35,680 --> 00:10:36,020
Right.

198
00:10:36,340 --> 00:10:39,610
So no, I just simply added our views with these views.

199
00:10:39,610 --> 00:10:42,950
I just simply added our function name as a contact.

200
00:10:43,300 --> 00:10:43,850
Perfect.

201
00:10:43,870 --> 00:10:51,640
So now if you click the save all cyno, our server is not totally running and now I want to do on the

202
00:10:51,710 --> 00:10:55,360
x axis I was about to enter.

203
00:10:55,390 --> 00:10:55,780
Yes.

204
00:10:55,780 --> 00:10:58,420
You can see it's not showing us that this is our about base.

205
00:10:58,930 --> 00:11:05,680
That means it's dictate to our view and then our this function that is our about function so that the

206
00:11:05,680 --> 00:11:08,020
views and that is all about function.

207
00:11:08,020 --> 00:11:09,180
That is a global response.

208
00:11:09,230 --> 00:11:15,220
Marseille's that industry personal message as this is our about base and now consistent showing our

209
00:11:15,220 --> 00:11:19,570
this is our about base and also for the contact us for the contractors.

210
00:11:19,570 --> 00:11:24,070
I have created another liberal I have created and the liberal as a contact us.

211
00:11:24,760 --> 00:11:27,870
And now if you click the contact us click as they enter.

212
00:11:28,240 --> 00:11:28,600
Yes.

213
00:11:28,600 --> 00:11:31,360
You can see it's not showing that this is our contact space.

214
00:11:31,720 --> 00:11:38,140
So no, it's perfectly dedicated to our views and the contact method and the contact so that they are

215
00:11:38,140 --> 00:11:38,700
contact.

216
00:11:38,710 --> 00:11:43,850
And here I simply pass on the written response and that is our message.

217
00:11:44,230 --> 00:11:49,600
So now you can see it's not perfectly display or this message, I hope, is very much clear to your

218
00:11:49,600 --> 00:11:49,990
friend.

219
00:11:50,140 --> 00:11:55,690
And now also now if you want to access our home route and here you can see it's now showing as a page

220
00:11:55,690 --> 00:11:59,020
not found because of all I didn't added any part.

221
00:11:59,470 --> 00:12:02,890
Like if you go to our what else in the world, Sadiya.

222
00:12:02,890 --> 00:12:04,120
I just added as a home.

223
00:12:04,120 --> 00:12:04,450
Right.

224
00:12:04,720 --> 00:12:09,610
So if you want to actually make that our home road, then you have to do we have to make the things

225
00:12:09,610 --> 00:12:11,560
as empty and empty means.

226
00:12:11,560 --> 00:12:14,110
That is our home directories so intolerable.

227
00:12:14,110 --> 00:12:21,280
Actually, we use that means that our home directories right now in general here, you have to you have

228
00:12:21,280 --> 00:12:24,880
to make that things as the empty, empty means that will be our home directly.

229
00:12:25,270 --> 00:12:30,020
That means when it should be as a home directly, it'll be redirected to our viewers home at all.

230
00:12:30,400 --> 00:12:32,470
So the views and there is our home.

231
00:12:32,470 --> 00:12:36,360
So the home function area, I just sponsored this message.

232
00:12:36,940 --> 00:12:37,960
Now, let's check this out.

233
00:12:37,960 --> 00:12:39,370
I'm just going to save all.

234
00:12:40,450 --> 00:12:42,910
And now if you refresh it.

235
00:12:42,910 --> 00:12:48,520
Yeah, you can see now it's perfectly visible, our home base that is our home directly.

236
00:12:48,820 --> 00:12:52,060
And if you added about that will be displayed.

237
00:12:52,060 --> 00:12:54,010
What about directly perfect.

238
00:12:54,020 --> 00:12:58,120
I hope everything is very much clear to your friend in your next video.

239
00:12:58,120 --> 00:13:01,630
I will discuss about the database with the EDP response.

240
00:13:01,750 --> 00:13:03,280
So thanks for watching.

241
00:13:03,310 --> 00:13:05,020
I will see you in the next video.
