So like in the two previous two tutorials, I showed you how you can solve jungle on your local machine
as well as how you initialize the jungle project as well as the jungle app.
So if you have any doubt regarding that, you can please refer to those two videos.
And in the second second video, I showed you how you can initialize the virtual environment in your
project.
What was the importance of virtual environment as well and how you can create a climate shortcakes defined
as well.
So that was very important, though.
So, like, I would like to show you one thing, that from now we are going to work on Vasko, and this
is my project structure.
And I would like to show you a graphical view of the project as well.
So this is my project with the name my first project.
I have an app named my first app and I have created my N.V..
And here you can see I have activated my water environment variable and I have created a file as well.
So if you have any doubt regarding this, if this thing seems new to you, so you can refer to my previous
to reduce.
So what I'm going to show you.
So this is going to be very interesting to turn from now.
We are going to be learning the this is going to be very hands on and it's going to be really interesting
also.
So what I'm going to show you is that closely will define your scheme and then will generate a response
to it.
So what we need to do is I would like to have a brief overview of my structure as well.
So this is I'm inside my first project folder.
So there are various slides with extensions or five to one of them, one inspired.
Here is your file.
So like in Distributed, we are going to be working with this file.
So so before.
And the second file is setting up a file.
So first thing you need to do is move to your settings file.
And inside the installed apps, you have to mention the app you have created with the name like this
is the app which I made.
So you have to mention your app name inside setting your profile.
My first app.
OK, and now what I'm telling you, the second thing you need to do is like, did you realise that we
were finding this in this directory?
So what you need to do is create one another.
Do you want to be.
So like this and there are to write is my first project.
So data is already launched for me.
If I find this, I'm the prototype because I told you that a single it can be multiple apps.
So you need to create a file for this app as well.
So what you do click here, new file.
You are as you are taught by.
So I have created this file and know what I'm going to tell you that they did not do you find one is
inside my directive, my first app, and one is inside my my first project.
So I would also have a graphic of you to it.
So I signed my first project folder and you already told me the file inside it.
And now there is a you are taught by people in this folder as well.
OK, so so you can see that.
No, there are two people file.
One is inside this folder and one is inside this folder.
So what I need to mention my general project that you need to include your file, which is inside my
folder called my first types of Fortunata, to include this.
You would include.
And second part.
Include and you have to mention here, my first app that you ordered.
So this is the that I mentioned that under the rule you have to include my first time, don't you?
So this looks pretty fine.
Now, I would define the others here.
So, yeah, from the who can do the first line.
You need to add this from January or import part.
So I would move today from Django don't you.
Orders import part and then you need to define the list of your titles.
OK, so this looks pretty same as this also, because here you can see they have included this from
General Dodgeballs import part as well, and you order patterns as a list.
So this looks pretty fine here.
Now, I would define the first part.
To put this, but before I want to tell you that you are only woke up and there is a function called
defined to that particular order.
So for that, what you need to do is for you.
What I'm going to tell you, you need to add this line.
Look at this, you are present here.
So you type from DOT from current 30.
Import news.
So what is the importance of these two lines is that the you have to create your views here.
So what do they mean by is that for this particular world, you have to mention a function call, so.
I would do one thing that I would mention this part.
And cold views thought my function called.
OK, and I would name this as index, so name index is used to refer the fourth name, so I would tell
you the importance of an index, so I would tell you the importance of name out.
Why you mention names on what when they are useful and how can we use them in ablate?
How can we use them in the template.
OK, so what I'm telling you that this bad part to confuse my function called this could be any function
name with the name.
And I've given this name that this you are has a specific name called Index.
OK, so now you will move to really your profile and define a function.
My function called.
And this takes that request as a barometer.
So this is you have to define this because you are making a request to this function called.
And now to generate a response, what you need to type is you need time, you need important.
There are two types of responses.
One is to respond.
Another is just one response.
So what you need to type is from Django DOT SCDP import at the BP response as well as Jason.
Response, so I think now it should work pretty fine and I would generate a response.
Kryten A. response.
Oh, hello, Tony.
Hello.
So now I would so I would first have a quick recap of this that I have first included your file.
First thing I did include my app inside this that I have included on my first ABDULJALIL inside of my
profile of my first project.
Then I mentioned this part and I made a function called to this part using the use file, because in
the user you mentioned, you mentioned your function goal.
So I'm in my function call and I named this particular you are an index.
And inside my first function called I generated a response.
So I think this should this should work fine.
Now, I would say Python manage not be run server.
So this will be a fine.
Look at the silver has started, so I went, OK, this looks pretty good, so you can see, you can
see because I didn't mention something, I didn't mention any any word here.
So it mentioned that there is a root directory.
So when I passed on this girl, I when I got my you got this particular girl, the root directory.
So it called my function called inside my file.
And I opened the door to my file.
So it had a request as a Paramatta engineer to actually be responsive.
This had worked.
So.
So this was the first time I know what you can do, what you can do, you can pass by as well.
So what do you need to do?
I want to show you one thing for sure.
Another thing, what you can do is you can copy this line.
And you can name this about.
And you can call this my about.
And you can do this about, OK, I know I'm making a bad call about and on my function about, so this
is my first I as I could, but my function about I need to define that.
So I would define this as well.
OK, quick, quick, quick overview.
I would copy this and I would generate
a bulk response,
OK.
And I would now call this function my function.
OK, so what I did here is I made the request to slash about from metadata and record my function about
and I gave I give this you are in particular about and it went to people file and called this particular
function and I would go back to my server.
So right now on the road to hell.
But as soon as I made a request to the about page, so it says about a response.
So this is pretty good.
So now you can understand activity.
So you can also do one thing.
Now what you can do is.
Copy this line as a.
I mean, this as I had my function, or you can add in.
You can say this is what I know I am telling this, wrote what I can showed you, like you can also
pass parameters as well.
So to pass a teacher, I type like this.
So I move back to this and type in.
You have to mention that in the golden age, so this is going to be in a.
Then into B.
OK, and now I have to define the Usdaw, and so I would go to Def Ad not force, Paramatta is going
to request the second part to go into the future, which I am taking, which was supposed I'm aiming
at X what you can for simplicity, for use it then be.
So what you need to do is return, that should be response or.
A plus B.
So I think it should look no.
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
two, so pictured will know it.
It has given me two integers of one and two and done initiative.
The it was pointed out, Patrique, the one thing I wanted to show you with this, Wolf, if I can take
away.
X plus Y.
This is all a part of a learning process, so I should make sure the rest of it is unnecessary.
The first thing is I will move to this.
Now, I would move to this about yes or now I would move to that part at for five.
So this doesn't work.
OK, so why this didn't work, because I had mentioned here in the US that people feel that I'm going
to get it as a barometer, then B as a barometer.
So what I need to mention here that inside my view is that if I had to strictly mention this as a comma,
B, so so make sure you be careful about this.
No, no.
I will restart the server and then refresh this page.
Now, this was because I wanted to make sure that inside I mentioned it as an information is we to input
parameters to my request part would be a comma, B as well.
So then I generated a bit of a plus be OK that this was not good.
Not for second thing you need to do and you can do it on your own.
So I would quickly create this font inco.
The first part of it is going to string name and the second one is going to end with an H.
And I would call Mujtahid Intro with the name particular name to the as intro.
So this looks good.
So this will because I am not defined in my life, so I move back to me.
So this time I'm going to show you just on this point, defined as a function, taking for spirometer
as a request, the second name.
So let me check what I define.
So I have to find as both an suppose and the name is going to be false and it is going to the second
now.
I would define a gentle response, so to generate this just wonderful.
I need to define a dictionary so dictionaries are basically given your peers.
So could be my personality is going to be able to with this name is going to be name hair and age.
Sorry, age is going to be with age here.
And I would put on a adjacent response here.
So I wanted to show you the difference between the Jayton response.
So.
Of that are because I think it's because I had different views on economic growth, particularly fine
now it has started.
So what I'm showing you, I would move to enco name as Jack and the age twenty five as well.
So you can see that now if you're doing Menges on response and I'm showing you a particular like here
show that this is just one response with the name and age.
And for the you can show this for the raw data as well.
So this is this shows you how the adjacent object looks like an ad in digital format of just four.
You can hear the name is Jack and the age is twenty five.
And this is a different object.
So like this way you can create a more the more you are.
So basically we here I cover the acceptable response as well as the JSON response.
So, so like so to generate and if we generate a request for a while you or also we generate a response
to that as well.
So like this is a.
So thank you guys.
Thank you so much.
So.