1
00:00:00,180 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:02,250 --> 00:00:05,190
In this video, you learned view, and there you are.

3
00:00:05,610 --> 00:00:08,850
So what is your view and what is your world like here?

4
00:00:08,850 --> 00:00:13,430
If you go to that Google official site and here you can see there is a Google dot com.

5
00:00:13,770 --> 00:00:16,530
So this Google dot com actually, that is actually that you are.

6
00:00:16,740 --> 00:00:20,370
And when you pass that, you are literally addicted to Google server.

7
00:00:20,370 --> 00:00:25,110
And this server returned with some of the View pages, which is actually user view.

8
00:00:25,260 --> 00:00:29,360
OK, so that is actually The View page that is on Google official of that view.

9
00:00:30,030 --> 00:00:32,480
So in Django, that will be just like that.

10
00:00:32,490 --> 00:00:33,390
Same here.

11
00:00:33,390 --> 00:00:39,360
When you pass any requests, it will be directed to one of the requests to the file as you are Dot Lotfy.

12
00:00:39,600 --> 00:00:44,940
And here, when this request will be matched with our Etoile, they need to be response on The View

13
00:00:44,970 --> 00:00:47,800
page and this response will be easily visible.

14
00:00:48,120 --> 00:00:53,130
OK, so here we have to find out that you are to start phy and the views dot file.

15
00:00:53,370 --> 00:00:56,190
So everything is already on our project.

16
00:00:56,190 --> 00:01:01,070
Like if you don't open our project and order the project if you go to our fast app.

17
00:01:01,080 --> 00:01:04,630
So I have already created all of the application into the font step here.

18
00:01:04,650 --> 00:01:06,430
You can see that left to the view dot fight.

19
00:01:06,740 --> 00:01:10,640
So for every application there have the individual from The View file.

20
00:01:10,650 --> 00:01:15,810
And if you want to manage all that your view file, then you can manage it in your main project.

21
00:01:15,820 --> 00:01:20,930
That is our first project and the project here, you can see that directly, that you are a file of

22
00:01:20,940 --> 00:01:21,220
a friend.

23
00:01:21,240 --> 00:01:22,470
So that is by default.

24
00:01:22,500 --> 00:01:28,830
So here you can manage your older view file that you file, your user will be visible and here you can

25
00:01:28,830 --> 00:01:32,460
manage your all the file from your project and that is where you are.

26
00:01:32,820 --> 00:01:37,980
OK, so here you have to write down your all that you URLs and we see what else you can manage all that

27
00:01:37,990 --> 00:01:38,300
view.

28
00:01:38,400 --> 00:01:39,960
So step by step, I will show you.

29
00:01:39,960 --> 00:01:41,720
Then it'll be very much clear to you.

30
00:01:42,120 --> 00:01:45,240
So first of all, I want to do I want to work on The View.

31
00:01:45,240 --> 00:01:50,720
So if you go to that view and here you can see by default there is a from Django shortcut in both.

32
00:01:50,880 --> 00:01:57,330
And so here I want to do first of all, here I have to import I have to import our EDP request.

33
00:01:57,330 --> 00:01:59,400
Whatever the request you will pass for you.

34
00:01:59,400 --> 00:01:59,960
You all right.

35
00:02:00,180 --> 00:02:03,270
So first of all, here we have to import it like here.

36
00:02:03,270 --> 00:02:07,480
If you want to import it, then you have to define it the form and then the Django.

37
00:02:09,600 --> 00:02:12,350
OK, then the Django and the EDP requests.

38
00:02:12,360 --> 00:02:15,270
I just simply defended the EDP and now I import it.

39
00:02:15,720 --> 00:02:22,410
So I just simply import our EDP response, all the tickets I just simply defined as the SCDP response.

40
00:02:24,510 --> 00:02:30,450
So I just simply define our EDP response, so as I told your friend, whatever the request you will

41
00:02:30,450 --> 00:02:31,410
pass from, aren't you?

42
00:02:31,410 --> 00:02:31,790
What else?

43
00:02:31,810 --> 00:02:35,010
So first of all, here we have to get that response.

44
00:02:35,040 --> 00:02:37,030
That means our EDP, all the response.

45
00:02:37,290 --> 00:02:39,150
So now I just simply import it.

46
00:02:39,420 --> 00:02:42,260
And after that here, I want to do want to create the view.

47
00:02:42,270 --> 00:02:46,920
So if you want to create that view, first of all, here, you have to define that one of the function

48
00:02:47,280 --> 00:02:49,650
like here I want to do and to create one of the functions.

49
00:02:49,660 --> 00:02:53,970
If you want to create any function in Python, then first of all, you have to define that things with

50
00:02:53,970 --> 00:02:54,600
the draft.

51
00:02:54,780 --> 00:02:57,600
And now I name one of the function of the index.

52
00:02:57,900 --> 00:03:01,170
OK, so right now I just simply defined that name as the index.

53
00:03:01,320 --> 00:03:03,630
So this will be our index view function.

54
00:03:03,630 --> 00:03:09,420
And here into this index function area, I have to get our this response equal rights for the regions

55
00:03:09,420 --> 00:03:09,650
here.

56
00:03:09,660 --> 00:03:13,850
I want to do want to take one of the parameter and I just name it as a request.

57
00:03:15,300 --> 00:03:20,170
So whatever the name you want to put here, that is actually look like one of the variables.

58
00:03:20,170 --> 00:03:23,550
So here I just simply define out the parameter as a request.

59
00:03:23,830 --> 00:03:30,060
And now here I want to do want to return one of the responses I just simply defined as a return an hour.

60
00:03:30,060 --> 00:03:32,880
I just take all the things with this EDP response.

61
00:03:32,880 --> 00:03:36,330
So with this EDP response, I want to respond some of the base.

62
00:03:36,570 --> 00:03:40,920
That is a view that also right now I want to do I want to display as a hello world.

63
00:03:43,470 --> 00:03:46,490
OK, so this step up, one of the things I want to response.

64
00:03:46,890 --> 00:03:49,400
So now we have to do we have to visibility.

65
00:03:49,410 --> 00:03:49,730
Right.

66
00:03:49,740 --> 00:03:51,310
So here we have the visibility.

67
00:03:51,310 --> 00:03:54,210
So for the reasons here, we have to define this response in our.

68
00:03:55,050 --> 00:03:56,730
So now go to our project.

69
00:03:56,730 --> 00:04:00,770
That means my first project and that is our water and the world.

70
00:04:00,780 --> 00:04:04,350
So there is some of the comments here and comment, we don't need this.

71
00:04:04,350 --> 00:04:05,390
I just simply remove it.

72
00:04:05,880 --> 00:04:10,470
OK, and here first of all, we have to do we have to load our D view.

73
00:04:10,650 --> 00:04:16,650
That means here I have already defined one of the function as an index function in our five step application

74
00:04:16,650 --> 00:04:18,600
right into the first step application.

75
00:04:18,600 --> 00:04:20,280
That is our view software.

76
00:04:20,280 --> 00:04:22,650
First of all, we have to do we have to load it.

77
00:04:22,980 --> 00:04:28,480
So in our view, what else that means in our first project, you or else here we have to import it.

78
00:04:28,480 --> 00:04:30,760
So I just simply define as a form.

79
00:04:31,050 --> 00:04:34,870
So from where you want to get I want to get that things from our fast steps.

80
00:04:34,870 --> 00:04:40,260
So I just simply defined as a fast, OK, fast and then underscore app.

81
00:04:40,280 --> 00:04:43,710
So that is our application name and form to this application.

82
00:04:43,710 --> 00:04:46,320
I want to import, I want to import which base.

83
00:04:46,320 --> 00:04:48,570
I want to import our view this space.

84
00:04:48,570 --> 00:04:48,860
Right.

85
00:04:49,080 --> 00:04:54,330
So here I want to simply define the views that are simply defined as the views of different.

86
00:04:54,380 --> 00:04:56,440
So I hope you can will understand about it.

87
00:04:56,460 --> 00:04:59,820
So that is our application as a fast app application.

88
00:04:59,820 --> 00:05:04,230
I just simply definitive from our Fastweb application, I want to import our view.

89
00:05:04,410 --> 00:05:05,670
So that is our views.

90
00:05:06,030 --> 00:05:09,510
OK, so now I want to do and define on the path for this one.

91
00:05:09,540 --> 00:05:11,850
So here in particular, that position.

92
00:05:11,860 --> 00:05:16,050
So that is actually the by default one of the parts and I want to do and to create another new path.

93
00:05:16,050 --> 00:05:17,900
So here I simply defending the path.

94
00:05:18,690 --> 00:05:20,270
So I just simply defined that part.

95
00:05:20,550 --> 00:05:21,930
So in particular that position.

96
00:05:21,930 --> 00:05:24,890
First of all, I have to do I have to define our equal.

97
00:05:24,910 --> 00:05:29,040
So which is what you want to visible for our space.

98
00:05:29,040 --> 00:05:34,080
That means here I have already defined some of the response data, so I want to display this data.

99
00:05:34,090 --> 00:05:37,230
So here I want to display this data, one of these specifically what else?

100
00:05:37,230 --> 00:05:39,450
I want to create one of these are the index.

101
00:05:40,210 --> 00:05:43,000
OK, I just simply name it as an index, one of the other.

102
00:05:43,230 --> 00:05:47,600
And also here after that, we have to do we have to define our function.

103
00:05:47,620 --> 00:05:53,240
So I have already created one of the function, in our view, right into the views I have already created

104
00:05:53,340 --> 00:05:55,870
of the function R function name of the index.

105
00:05:56,280 --> 00:05:57,990
So now I just simply defining it.

106
00:05:58,260 --> 00:05:59,910
So I just simply defined the views.

107
00:06:00,840 --> 00:06:05,150
OK, within this views, I just want to access our index functions.

108
00:06:05,160 --> 00:06:06,900
I just simply defined that index function.

109
00:06:06,930 --> 00:06:10,320
So if you want to put that name for this, you are and you can define that name.

110
00:06:10,620 --> 00:06:14,010
So you just simply defined that name and I just name it as index.

111
00:06:14,490 --> 00:06:16,320
So I just simply name it as the index.

112
00:06:16,620 --> 00:06:17,930
So now let's check this out.

113
00:06:17,940 --> 00:06:22,250
I want to do the save all and now I want to run our project.

114
00:06:22,950 --> 00:06:24,840
So here that is our politics.

115
00:06:24,840 --> 00:06:26,120
We have to go out.

116
00:06:26,130 --> 00:06:28,030
This is my first project.

117
00:06:28,050 --> 00:06:30,900
So now if you want to go it, I think you already know about it.

118
00:06:30,900 --> 00:06:37,500
There is a CD that the actually and then m OK and tab on the enter.

119
00:06:37,530 --> 00:06:43,020
So right now we are appropriate our location and here I want to do Enteron or Shahbazi if you want to

120
00:06:43,020 --> 00:06:43,560
run it.

121
00:06:43,560 --> 00:06:45,090
I think you already know about it.

122
00:06:45,090 --> 00:06:46,500
You have to define as a python.

123
00:06:47,370 --> 00:06:47,790
Right.

124
00:06:47,790 --> 00:06:53,480
Python and the Manor's man is dot fi and the run server.

125
00:06:55,020 --> 00:06:58,200
OK, and a simple definitive answer was noncyclical on the enter.

126
00:07:01,620 --> 00:07:05,430
Now you can see our survival is totally running, so I just simply copy it.

127
00:07:06,900 --> 00:07:12,840
I just got copied and now here I have defined already what this will be as the index, right?

128
00:07:12,870 --> 00:07:14,440
So that will be our main part.

129
00:07:14,480 --> 00:07:19,500
So if you have that website, that will be your wife's name as the X, Y, Z, dot com.

130
00:07:19,510 --> 00:07:22,020
And after that, your domain.

131
00:07:22,020 --> 00:07:23,310
After that, your domain.

132
00:07:23,320 --> 00:07:24,390
That will be our.

133
00:07:24,400 --> 00:07:25,180
You are right.

134
00:07:25,200 --> 00:07:28,320
So that will be a we are also now able to do here.

135
00:07:28,330 --> 00:07:34,090
I just simply posted and after that it should be as an index if they just simply define an index to

136
00:07:34,110 --> 00:07:34,810
enter.

137
00:07:35,260 --> 00:07:36,420
Yes.

138
00:07:36,420 --> 00:07:42,660
Now considering now it's actually showing our peace message that the response message as a hello world

139
00:07:43,470 --> 00:07:48,390
friend, I think now should be very much clear to you, sir, here, that will be our quarrel.

140
00:07:48,570 --> 00:07:54,750
And if you are ill, I just simply define our views into the views that is our function as an index

141
00:07:54,750 --> 00:07:56,940
function and into this index function.

142
00:07:56,940 --> 00:08:03,090
If you go to our view, that means here I have already created the function as an index function.

143
00:08:03,090 --> 00:08:09,570
Here I get that request and with this returned our EDP response here, I just simply response our Hello

144
00:08:09,570 --> 00:08:10,520
world on the 26th.

145
00:08:10,830 --> 00:08:16,080
So now you can see when you actually access this, you are the index, then it shall be displayed our

146
00:08:16,080 --> 00:08:16,890
this message.

147
00:08:17,160 --> 00:08:17,530
Right.

148
00:08:17,730 --> 00:08:22,800
So if you want to change it like here, if you want to add that is the one that means here if you want

149
00:08:22,800 --> 00:08:29,600
to put your H1 tags, I just simply defined as H1 tag and I want to finish it.

150
00:08:30,270 --> 00:08:32,930
So here I just simply finish our H1 tag.

151
00:08:33,090 --> 00:08:34,800
So here I just finish it.

152
00:08:34,960 --> 00:08:36,770
OK, so I just simply finish it.

153
00:08:36,780 --> 00:08:38,640
Now if you can save all.

154
00:08:41,230 --> 00:08:45,670
And now if you refresh it again, yeah, you can see it's now becoming change.

155
00:08:46,120 --> 00:08:51,400
So now here I have created one of the round as indexer here, if you want to change it, like here,

156
00:08:51,400 --> 00:08:54,490
I just found the whole click on the Antares right now.

157
00:08:54,520 --> 00:08:56,500
You can see it's not getting that you.

158
00:08:56,500 --> 00:08:57,370
All right?

159
00:08:57,700 --> 00:09:02,020
So if you want to display this, you are old and you have to do we have to create another URL for this

160
00:09:02,020 --> 00:09:02,280
one.

161
00:09:02,710 --> 00:09:08,020
So here I have already defined our all that you are like here I define that you are the index.

162
00:09:08,290 --> 00:09:15,040
So now if you want to access it with the home like here, I defined that name as a home and for the

163
00:09:15,040 --> 00:09:20,080
home I just simply defined the same name as a views in our index function or shall we call?

164
00:09:20,200 --> 00:09:23,530
And I just put that name as the index which will be needed later.

165
00:09:23,530 --> 00:09:26,190
I will show you how I am actually using it.

166
00:09:26,500 --> 00:09:27,650
So that is our part.

167
00:09:27,670 --> 00:09:28,720
Now I have created.

168
00:09:28,960 --> 00:09:30,850
So now if you click as I save all.

169
00:09:33,080 --> 00:09:38,270
Now our server is perfectly running, so now I have to do and to access it, so now if you want to access

170
00:09:38,270 --> 00:09:40,160
our home, click on the enter.

171
00:09:40,200 --> 00:09:43,520
Yeah, you can see so perfectly now getting that out.

172
00:09:43,550 --> 00:09:43,890
Hello.

173
00:09:43,940 --> 00:09:47,810
All because of all I have already created and that you are as a home.

174
00:09:47,930 --> 00:09:48,280
Right.

175
00:09:48,560 --> 00:09:52,630
So also if you want to use that index right now, click on the enter.

176
00:09:52,670 --> 00:09:54,320
You can see you can also use it.

177
00:09:54,650 --> 00:09:56,780
But I didn't add any home.

178
00:09:56,810 --> 00:10:01,340
That means here if you enter you can see for the home, I didn't find any.

179
00:10:01,700 --> 00:10:05,680
You are so right now one to do and to define another one better.

180
00:10:05,690 --> 00:10:09,290
I just simply copied it and now I take another one.

181
00:10:09,290 --> 00:10:11,660
And for the home, I think you already know about it.

182
00:10:11,870 --> 00:10:13,260
So will be as a blank.

183
00:10:13,280 --> 00:10:16,310
OK, that means blank will be our main trajectory.

184
00:10:16,340 --> 00:10:19,100
So here if you now click as a Savol.

185
00:10:19,620 --> 00:10:23,910
So now I just simply defined as the views and our index and our index.

186
00:10:23,930 --> 00:10:25,600
So that is our name.

187
00:10:25,610 --> 00:10:28,160
So I have already defined our dysfunction.

188
00:10:28,790 --> 00:10:30,320
So now click on the refresh.

189
00:10:30,650 --> 00:10:31,270
Yes.

190
00:10:31,280 --> 00:10:33,480
Now, because your friend now is also getting our home.

191
00:10:33,480 --> 00:10:36,620
You are also for the reasons here I have created another hour.

192
00:10:36,620 --> 00:10:37,820
You are as a whole.

193
00:10:38,120 --> 00:10:39,650
That means our route directly.

194
00:10:39,650 --> 00:10:43,420
And I also created another one of the home and the index.

195
00:10:43,970 --> 00:10:50,960
I hope you will understand about it how that our ideals and how can display your all that view, all

196
00:10:50,960 --> 00:10:52,020
that data.

197
00:10:52,070 --> 00:10:57,930
So now we successfully display all the time out and also display our all that view base.

198
00:10:58,310 --> 00:11:01,820
So here now, if you want to access the index or home.

199
00:11:02,240 --> 00:11:04,160
Yeah, everything is perfectly working.

200
00:11:04,400 --> 00:11:10,370
So friend here, if you want to change it, like here, I have to find one of the one of the function

201
00:11:10,370 --> 00:11:13,100
as an index function and here I call it.

202
00:11:13,100 --> 00:11:16,530
Right, so here into the views I simply defined as the index.

203
00:11:16,560 --> 00:11:21,960
So now if you want to change it like here, I just name it as home right now, OK, just name it as

204
00:11:21,960 --> 00:11:22,540
a home.

205
00:11:22,790 --> 00:11:28,730
And now if you click the save all if not should be work like here if goes up refresh.

206
00:11:30,140 --> 00:11:35,950
Now, you can see it's not getting any better because of all in our are, because of all here, I have

207
00:11:35,950 --> 00:11:39,320
created one of the function as a home function.

208
00:11:39,500 --> 00:11:44,750
But in our view, what else here you can see our viewers, they have another one that is actually the

209
00:11:44,750 --> 00:11:45,320
index.

210
00:11:45,530 --> 00:11:51,110
So I didn't create any function with the index I have created and a function as a home.

211
00:11:51,110 --> 00:11:51,380
Right.

212
00:11:51,470 --> 00:11:56,600
So here, if you want to change it like here, I want to change it as a index to home.

213
00:11:57,170 --> 00:11:58,970
Now click as I save all.

214
00:12:02,410 --> 00:12:07,390
Now, if you refresh it again, yeah, you can see it's not perfectly working.

215
00:12:08,290 --> 00:12:13,560
Next video to discuss about how you can create that multiple function for the multiple page.

216
00:12:13,590 --> 00:12:15,510
So I don't have the only one piece.

217
00:12:15,520 --> 00:12:19,980
And for the only one Dupas, I have created only one function.

218
00:12:20,020 --> 00:12:20,380
Right.

219
00:12:20,410 --> 00:12:23,280
So here I have created only one function as a home.

220
00:12:23,560 --> 00:12:29,500
So if you want to create that multiple function and here if in the load that multiple plays, how can

221
00:12:29,500 --> 00:12:31,420
do that work in our next video?

222
00:12:31,450 --> 00:12:33,630
I will show you that things with the live example.

223
00:12:34,210 --> 00:12:37,660
So friend Dontari is step by step, will go more deep.

224
00:12:37,660 --> 00:12:42,370
So whatever the main core thinks you should know about Python and Django, step by step.

225
00:12:42,370 --> 00:12:43,100
I will show you.

226
00:12:43,420 --> 00:12:46,660
So thanks for watching and I will see you the next video.
