1 00:00:00,540 --> 00:00:05,430 So like in the two previous two tutorials, I showed you how you can solve jungle on your local machine 2 00:00:05,430 --> 00:00:08,920 as well as how you initialize the jungle project as well as the jungle app. 3 00:00:09,150 --> 00:00:12,620 So if you have any doubt regarding that, you can please refer to those two videos. 4 00:00:12,840 --> 00:00:17,870 And in the second second video, I showed you how you can initialize the virtual environment in your 5 00:00:17,880 --> 00:00:18,340 project. 6 00:00:18,360 --> 00:00:23,400 What was the importance of virtual environment as well and how you can create a climate shortcakes defined 7 00:00:23,400 --> 00:00:23,790 as well. 8 00:00:24,030 --> 00:00:25,940 So that was very important, though. 9 00:00:26,290 --> 00:00:32,700 So, like, I would like to show you one thing, that from now we are going to work on Vasko, and this 10 00:00:32,700 --> 00:00:33,780 is my project structure. 11 00:00:34,140 --> 00:00:37,320 And I would like to show you a graphical view of the project as well. 12 00:00:37,590 --> 00:00:40,580 So this is my project with the name my first project. 13 00:00:40,710 --> 00:00:44,490 I have an app named my first app and I have created my N.V.. 14 00:00:44,850 --> 00:00:52,450 And here you can see I have activated my water environment variable and I have created a file as well. 15 00:00:52,800 --> 00:00:59,820 So if you have any doubt regarding this, if this thing seems new to you, so you can refer to my previous 16 00:00:59,820 --> 00:01:00,400 to reduce. 17 00:01:00,750 --> 00:01:02,770 So what I'm going to show you. 18 00:01:02,790 --> 00:01:05,820 So this is going to be very interesting to turn from now. 19 00:01:05,850 --> 00:01:12,360 We are going to be learning the this is going to be very hands on and it's going to be really interesting 20 00:01:12,360 --> 00:01:12,840 also. 21 00:01:13,170 --> 00:01:18,810 So what I'm going to show you is that closely will define your scheme and then will generate a response 22 00:01:18,810 --> 00:01:19,080 to it. 23 00:01:19,410 --> 00:01:25,500 So what we need to do is I would like to have a brief overview of my structure as well. 24 00:01:25,680 --> 00:01:27,870 So this is I'm inside my first project folder. 25 00:01:27,880 --> 00:01:31,890 So there are various slides with extensions or five to one of them, one inspired. 26 00:01:31,890 --> 00:01:33,490 Here is your file. 27 00:01:33,510 --> 00:01:36,310 So like in Distributed, we are going to be working with this file. 28 00:01:36,870 --> 00:01:39,390 So so before. 29 00:01:39,510 --> 00:01:42,000 And the second file is setting up a file. 30 00:01:42,240 --> 00:01:45,930 So first thing you need to do is move to your settings file. 31 00:01:48,930 --> 00:01:57,150 And inside the installed apps, you have to mention the app you have created with the name like this 32 00:01:57,150 --> 00:01:58,420 is the app which I made. 33 00:01:58,440 --> 00:02:02,200 So you have to mention your app name inside setting your profile. 34 00:02:02,250 --> 00:02:04,810 My first app. 35 00:02:05,920 --> 00:02:13,630 OK, and now what I'm telling you, the second thing you need to do is like, did you realise that we 36 00:02:13,630 --> 00:02:16,050 were finding this in this directory? 37 00:02:16,300 --> 00:02:20,440 So what you need to do is create one another. 38 00:02:20,440 --> 00:02:21,320 Do you want to be. 39 00:02:22,180 --> 00:02:25,060 So like this and there are to write is my first project. 40 00:02:25,480 --> 00:02:27,220 So data is already launched for me. 41 00:02:27,220 --> 00:02:32,470 If I find this, I'm the prototype because I told you that a single it can be multiple apps. 42 00:02:32,710 --> 00:02:36,050 So you need to create a file for this app as well. 43 00:02:36,070 --> 00:02:39,130 So what you do click here, new file. 44 00:02:39,520 --> 00:02:43,680 You are as you are taught by. 45 00:02:46,000 --> 00:02:52,750 So I have created this file and know what I'm going to tell you that they did not do you find one is 46 00:02:52,750 --> 00:02:57,870 inside my directive, my first app, and one is inside my my first project. 47 00:02:58,120 --> 00:03:00,100 So I would also have a graphic of you to it. 48 00:03:00,340 --> 00:03:05,520 So I signed my first project folder and you already told me the file inside it. 49 00:03:05,890 --> 00:03:10,660 And now there is a you are taught by people in this folder as well. 50 00:03:11,530 --> 00:03:14,110 OK, so so you can see that. 51 00:03:14,110 --> 00:03:16,140 No, there are two people file. 52 00:03:16,150 --> 00:03:21,170 One is inside this folder and one is inside this folder. 53 00:03:21,820 --> 00:03:28,210 So what I need to mention my general project that you need to include your file, which is inside my 54 00:03:28,600 --> 00:03:31,700 folder called my first types of Fortunata, to include this. 55 00:03:31,700 --> 00:03:33,070 You would include. 56 00:03:35,030 --> 00:03:37,610 And second part. 57 00:03:40,690 --> 00:03:49,540 Include and you have to mention here, my first app that you ordered. 58 00:03:51,130 --> 00:03:56,550 So this is the that I mentioned that under the rule you have to include my first time, don't you? 59 00:03:56,920 --> 00:03:57,990 So this looks pretty fine. 60 00:03:58,390 --> 00:04:03,120 Now, I would define the others here. 61 00:04:04,060 --> 00:04:06,940 So, yeah, from the who can do the first line. 62 00:04:06,940 --> 00:04:10,420 You need to add this from January or import part. 63 00:04:11,330 --> 00:04:16,270 So I would move today from Django don't you. 64 00:04:16,270 --> 00:04:24,940 Orders import part and then you need to define the list of your titles. 65 00:04:30,020 --> 00:04:35,470 OK, so this looks pretty same as this also, because here you can see they have included this from 66 00:04:35,470 --> 00:04:39,670 General Dodgeballs import part as well, and you order patterns as a list. 67 00:04:40,150 --> 00:04:41,750 So this looks pretty fine here. 68 00:04:42,290 --> 00:04:46,060 Now, I would define the first part. 69 00:04:47,410 --> 00:04:54,010 To put this, but before I want to tell you that you are only woke up and there is a function called 70 00:04:54,010 --> 00:04:55,840 defined to that particular order. 71 00:04:56,350 --> 00:05:00,030 So for that, what you need to do is for you. 72 00:05:00,160 --> 00:05:02,740 What I'm going to tell you, you need to add this line. 73 00:05:04,290 --> 00:05:06,390 Look at this, you are present here. 74 00:05:06,410 --> 00:05:11,140 So you type from DOT from current 30. 75 00:05:12,270 --> 00:05:14,920 Import news. 76 00:05:16,440 --> 00:05:22,620 So what is the importance of these two lines is that the you have to create your views here. 77 00:05:22,650 --> 00:05:29,790 So what do they mean by is that for this particular world, you have to mention a function call, so. 78 00:05:30,780 --> 00:05:35,910 I would do one thing that I would mention this part. 79 00:05:37,330 --> 00:05:43,120 And cold views thought my function called. 80 00:05:45,540 --> 00:05:55,590 OK, and I would name this as index, so name index is used to refer the fourth name, so I would tell 81 00:05:55,590 --> 00:06:00,050 you the importance of an index, so I would tell you the importance of name out. 82 00:06:00,150 --> 00:06:04,830 Why you mention names on what when they are useful and how can we use them in ablate? 83 00:06:05,550 --> 00:06:07,350 How can we use them in the template. 84 00:06:07,740 --> 00:06:19,200 OK, so what I'm telling you that this bad part to confuse my function called this could be any function 85 00:06:19,200 --> 00:06:20,280 name with the name. 86 00:06:20,280 --> 00:06:26,010 And I've given this name that this you are has a specific name called Index. 87 00:06:26,340 --> 00:06:31,210 OK, so now you will move to really your profile and define a function. 88 00:06:31,230 --> 00:06:32,490 My function called. 89 00:06:37,590 --> 00:06:41,880 And this takes that request as a barometer. 90 00:06:41,910 --> 00:06:46,950 So this is you have to define this because you are making a request to this function called. 91 00:06:47,930 --> 00:06:53,970 And now to generate a response, what you need to type is you need time, you need important. 92 00:06:53,980 --> 00:06:55,340 There are two types of responses. 93 00:06:55,370 --> 00:06:56,810 One is to respond. 94 00:06:56,840 --> 00:06:58,100 Another is just one response. 95 00:06:58,370 --> 00:07:13,250 So what you need to type is from Django DOT SCDP import at the BP response as well as Jason. 96 00:07:15,690 --> 00:07:23,820 Response, so I think now it should work pretty fine and I would generate a response. 97 00:07:24,420 --> 00:07:27,900 Kryten A. response. 98 00:07:28,290 --> 00:07:31,390 Oh, hello, Tony. 99 00:07:31,770 --> 00:07:32,190 Hello. 100 00:07:34,890 --> 00:07:43,680 So now I would so I would first have a quick recap of this that I have first included your file. 101 00:07:44,070 --> 00:07:50,760 First thing I did include my app inside this that I have included on my first ABDULJALIL inside of my 102 00:07:51,280 --> 00:07:52,810 profile of my first project. 103 00:07:53,550 --> 00:08:01,320 Then I mentioned this part and I made a function called to this part using the use file, because in 104 00:08:01,320 --> 00:08:04,980 the user you mentioned, you mentioned your function goal. 105 00:08:05,310 --> 00:08:10,230 So I'm in my function call and I named this particular you are an index. 106 00:08:10,590 --> 00:08:16,150 And inside my first function called I generated a response. 107 00:08:16,150 --> 00:08:18,930 So I think this should this should work fine. 108 00:08:18,930 --> 00:08:27,170 Now, I would say Python manage not be run server. 109 00:08:30,140 --> 00:08:31,340 So this will be a fine. 110 00:08:32,540 --> 00:08:40,580 Look at the silver has started, so I went, OK, this looks pretty good, so you can see, you can 111 00:08:40,580 --> 00:08:47,120 see because I didn't mention something, I didn't mention any any word here. 112 00:08:47,120 --> 00:08:49,190 So it mentioned that there is a root directory. 113 00:08:49,490 --> 00:08:57,920 So when I passed on this girl, I when I got my you got this particular girl, the root directory. 114 00:08:57,930 --> 00:09:02,080 So it called my function called inside my file. 115 00:09:02,180 --> 00:09:04,760 And I opened the door to my file. 116 00:09:05,030 --> 00:09:08,890 So it had a request as a Paramatta engineer to actually be responsive. 117 00:09:08,900 --> 00:09:09,590 This had worked. 118 00:09:10,010 --> 00:09:10,480 So. 119 00:09:10,880 --> 00:09:15,640 So this was the first time I know what you can do, what you can do, you can pass by as well. 120 00:09:15,650 --> 00:09:16,730 So what do you need to do? 121 00:09:17,210 --> 00:09:20,780 I want to show you one thing for sure. 122 00:09:20,780 --> 00:09:25,940 Another thing, what you can do is you can copy this line. 123 00:09:31,110 --> 00:09:32,850 And you can name this about. 124 00:09:36,230 --> 00:09:38,870 And you can call this my about. 125 00:09:40,780 --> 00:09:50,390 And you can do this about, OK, I know I'm making a bad call about and on my function about, so this 126 00:09:50,440 --> 00:09:55,500 is my first I as I could, but my function about I need to define that. 127 00:09:56,170 --> 00:09:57,580 So I would define this as well. 128 00:09:58,120 --> 00:10:02,150 OK, quick, quick, quick overview. 129 00:10:02,200 --> 00:10:04,750 I would copy this and I would generate 130 00:10:07,960 --> 00:10:09,070 a bulk response, 131 00:10:13,000 --> 00:10:13,290 OK. 132 00:10:13,630 --> 00:10:17,440 And I would now call this function my function. 133 00:10:17,540 --> 00:10:26,170 OK, so what I did here is I made the request to slash about from metadata and record my function about 134 00:10:26,350 --> 00:10:33,730 and I gave I give this you are in particular about and it went to people file and called this particular 135 00:10:33,730 --> 00:10:37,730 function and I would go back to my server. 136 00:10:38,230 --> 00:10:41,010 So right now on the road to hell. 137 00:10:41,050 --> 00:10:47,740 But as soon as I made a request to the about page, so it says about a response. 138 00:10:47,770 --> 00:10:49,040 So this is pretty good. 139 00:10:49,270 --> 00:10:51,040 So now you can understand activity. 140 00:10:51,460 --> 00:10:53,740 So you can also do one thing. 141 00:10:55,980 --> 00:10:58,810 Now what you can do is. 142 00:10:59,750 --> 00:11:00,950 Copy this line as a. 143 00:11:04,170 --> 00:11:12,270 I mean, this as I had my function, or you can add in. 144 00:11:15,020 --> 00:11:25,120 You can say this is what I know I am telling this, wrote what I can showed you, like you can also 145 00:11:25,660 --> 00:11:27,110 pass parameters as well. 146 00:11:27,730 --> 00:11:31,210 So to pass a teacher, I type like this. 147 00:11:32,110 --> 00:11:35,980 So I move back to this and type in. 148 00:11:40,060 --> 00:11:46,660 You have to mention that in the golden age, so this is going to be in a. 149 00:11:50,880 --> 00:11:52,500 Then into B. 150 00:11:54,860 --> 00:12:05,570 OK, and now I have to define the Usdaw, and so I would go to Def Ad not force, Paramatta is going 151 00:12:05,580 --> 00:12:12,050 to request the second part to go into the future, which I am taking, which was supposed I'm aiming 152 00:12:12,050 --> 00:12:17,360 at X what you can for simplicity, for use it then be. 153 00:12:18,850 --> 00:12:26,590 So what you need to do is return, that should be response or. 154 00:12:28,110 --> 00:12:30,060 A plus B. 155 00:12:31,650 --> 00:12:33,690 So I think it should look no. 156 00:12:35,860 --> 00:12:42,700 Now, what I'm telling you to add 20 to my one is going to be one and the second one is going to be 157 00:12:42,700 --> 00:12:44,870 two, so pictured will know it. 158 00:12:45,340 --> 00:12:50,980 It has given me two integers of one and two and done initiative. 159 00:12:50,980 --> 00:12:57,100 The it was pointed out, Patrique, the one thing I wanted to show you with this, Wolf, if I can take 160 00:12:57,910 --> 00:12:58,300 away. 161 00:13:00,310 --> 00:13:01,780 X plus Y. 162 00:13:03,630 --> 00:13:09,110 This is all a part of a learning process, so I should make sure the rest of it is unnecessary. 163 00:13:10,930 --> 00:13:13,500 The first thing is I will move to this. 164 00:13:15,660 --> 00:13:24,180 Now, I would move to this about yes or now I would move to that part at for five. 165 00:13:26,060 --> 00:13:27,910 So this doesn't work. 166 00:13:28,850 --> 00:13:39,740 OK, so why this didn't work, because I had mentioned here in the US that people feel that I'm going 167 00:13:39,740 --> 00:13:43,110 to get it as a barometer, then B as a barometer. 168 00:13:43,760 --> 00:13:51,800 So what I need to mention here that inside my view is that if I had to strictly mention this as a comma, 169 00:13:51,800 --> 00:13:56,810 B, so so make sure you be careful about this. 170 00:13:56,820 --> 00:13:58,640 No, no. 171 00:13:58,640 --> 00:14:02,550 I will restart the server and then refresh this page. 172 00:14:03,290 --> 00:14:12,620 Now, this was because I wanted to make sure that inside I mentioned it as an information is we to input 173 00:14:12,620 --> 00:14:16,250 parameters to my request part would be a comma, B as well. 174 00:14:16,550 --> 00:14:21,380 So then I generated a bit of a plus be OK that this was not good. 175 00:14:21,520 --> 00:14:26,330 Not for second thing you need to do and you can do it on your own. 176 00:14:27,020 --> 00:14:31,880 So I would quickly create this font inco. 177 00:14:34,510 --> 00:14:43,930 The first part of it is going to string name and the second one is going to end with an H. 178 00:14:45,530 --> 00:14:53,100 And I would call Mujtahid Intro with the name particular name to the as intro. 179 00:14:55,130 --> 00:14:56,130 So this looks good. 180 00:14:56,840 --> 00:15:02,080 So this will because I am not defined in my life, so I move back to me. 181 00:15:02,540 --> 00:15:09,170 So this time I'm going to show you just on this point, defined as a function, taking for spirometer 182 00:15:09,170 --> 00:15:12,380 as a request, the second name. 183 00:15:12,770 --> 00:15:14,180 So let me check what I define. 184 00:15:14,380 --> 00:15:19,660 So I have to find as both an suppose and the name is going to be false and it is going to the second 185 00:15:20,510 --> 00:15:20,990 now. 186 00:15:22,770 --> 00:15:29,120 I would define a gentle response, so to generate this just wonderful. 187 00:15:29,190 --> 00:15:33,960 I need to define a dictionary so dictionaries are basically given your peers. 188 00:15:34,530 --> 00:15:48,810 So could be my personality is going to be able to with this name is going to be name hair and age. 189 00:15:49,290 --> 00:15:55,260 Sorry, age is going to be with age here. 190 00:15:56,880 --> 00:16:01,280 And I would put on a adjacent response here. 191 00:16:01,590 --> 00:16:04,610 So I wanted to show you the difference between the Jayton response. 192 00:16:05,220 --> 00:16:05,880 So. 193 00:16:07,160 --> 00:16:15,650 Of that are because I think it's because I had different views on economic growth, particularly fine 194 00:16:16,490 --> 00:16:17,750 now it has started. 195 00:16:18,230 --> 00:16:31,310 So what I'm showing you, I would move to enco name as Jack and the age twenty five as well. 196 00:16:32,000 --> 00:16:38,570 So you can see that now if you're doing Menges on response and I'm showing you a particular like here 197 00:16:38,600 --> 00:16:41,360 show that this is just one response with the name and age. 198 00:16:41,660 --> 00:16:45,800 And for the you can show this for the raw data as well. 199 00:16:45,830 --> 00:16:52,550 So this is this shows you how the adjacent object looks like an ad in digital format of just four. 200 00:16:52,850 --> 00:16:56,170 You can hear the name is Jack and the age is twenty five. 201 00:16:56,180 --> 00:16:57,980 And this is a different object. 202 00:16:58,190 --> 00:17:02,000 So like this way you can create a more the more you are. 203 00:17:02,390 --> 00:17:06,860 So basically we here I cover the acceptable response as well as the JSON response. 204 00:17:07,250 --> 00:17:15,830 So, so like so to generate and if we generate a request for a while you or also we generate a response 205 00:17:15,830 --> 00:17:16,730 to that as well. 206 00:17:17,120 --> 00:17:18,220 So like this is a. 207 00:17:18,860 --> 00:17:19,940 So thank you guys. 208 00:17:19,940 --> 00:17:20,750 Thank you so much. 209 00:17:21,020 --> 00:17:21,310 So.