Hello, friend.
Welcome back.
In a previous video I have already discussed about that, things with you, how Django worked.
So as I told you, Django actually work with the and the that is the model du template.
Patton So now we learned more clearly.
OK, so don't worry.
As I told you, step by step, everything will be more clear to use.
Right now we don't need this.
I just simply the don't save.
And now if you go to our template, that means we have already installed one on the back, one of the
packages.
So that is actually our project.
Right.
So that is our fault.
So that is one of the default on the page is now loaded.
So right now I want to do an actual change it like here if you want to add the about the enter.
So that is one of the.
You are.
All right.
So that is one of the orders of what exactly that things is happening on here.
So when you actually send some of the requests, like right now, you can see it's not showing as a
page not found because of all he didn't get any method.
You consider the request one of the method.
So that is our request.
So when you pass any waddill, then first of all, it will be redacted to the view into the view area.
If you get any data, then it should be displayed, OK, should be displayed.
Some of the template right there should be show some the data or other than if there have any database
related issues for us to follow till we get to the view area and found to the view it's actually getting
all the data from the database and get that data and visibility into the template area.
So right now I don't have any database.
So right now I want to show some of the data.
OK, so make sure you understand that part.
That means when you actually pass any warrell is to be addicted to one of the view bays.
So but if you go to our Django project into the general project here, you can see there have no actually
the view file.
So they have the equals file.
As I told you before, Django actually working with the apps like you can create multiple apps for your
multiple module.
So when you create any app then into the app folder, you will get that view file.
So right now here you can see here they have no view.
So they have only one file as you and the other area that is actually our part by default on the part
as an admin.
So right now and doing to create one of the pot.
So that is a clear path I want to create as a board.
If you want to create another part of the contact, you can everything you have to do.
We have to add that you are all in this.
You are the area that is our main model.
You are right.
So now here I want to do I want to create one of the wall.
So that is a what else says I told you when you actually pass that hour, you really should be past
that request to one of the view.
So right now, the follow on that have no view file.
Right.
So no one to create one of the view file.
That means here in particular, this folder area, I want to create one of the new file software.
And as I told you, don't worry.
Everything is step by step will be more clear to you.
Like here I created one of the views file.
So you have to write down the views of views by.
So that is actually the extension of the python that they are pice.
So I just simply created on The View by.
So when you actually pass that request, first of all, we have to do we have to create all the method
for this issue will dictate to our view page as I told you.
Right.
So now you can see for the reasons here I have created by a few file that is a clear view start by simply
the views that area.
First of all, I wanted to create one of the function you can name it as a function or rather then you
can name it as a method to now I just name it as a function.
So I just if you want to create that function, you have to add it as a def.
And I just named that function name as a whole.
Whatever he wants right now, I just name it on the function name as a form seal to the function area.
First of all, it's actually past one of the parameters of this parameter as a request parameter.
So here you have to do we have to pass that request.
So I just simply pass one of the parameter as a request parameter, OK, and then here you have to do
the right thing to actually show some of the message lately.
I will also add some of the template.
So if you want to show some of the returns on the string message, then you have to do we have to write
down as a return.
So I just simply added the return and return our EDP response.
Right.
That means here we have to pass it with our EDP response.
So here they have also an update.
Another method as stupid as I just simply added the EDP response right there is our response.
So with this EDP response, I want to show some Distin data that this is our home base.
So this type of one of the interesting data I want to visible and here, if you want to use that SCDP
response, you have to also import it.
So that is default one.
So here you have to import from Django, OK, from Django and then the SCDP.
So from the Django is TDP.
You have to we have to import our DWB response.
That means this is the response that actually I have used on here, and I hope everything is very much
clear to you, so that is our default one.
So from the default language TDP, I import one of the method glass as our SCDP response.
So I have created one of the Methode as a whole method and the Matsudaira by default use that have one
of the parameter as it exists for the reasons here.
I just pass that request.
Right, and then I just simply return one of the estin data that means our shall be displayed our with
the EDP response.
So here I just simply display our data.
OK, and also to create another one, I want to create another one for our about face.
That means I want to create another method as about so I just put that function name as a dev about.
And also here we have to pass that request.
That means our parameter will be also one of the parameters of this parameter.
You have to pass it.
And then also for this, I want to return one of the same SCDP response data and it should be displayed.
It should be displayed.
And then the text that this is our about base, OK, this is about base.
And also I want to take another one.
I want to take another one that means another function.
And I just named that function as a contact.
So that will be our contact.
And then the requests return.
It will be our contact base.
Right.
So it'll be as a contact base.
Perfect.
So now we have to do we have to create that.
All right.
So as I told you, we knew like that is a clearer about.
Right.
And also, if you click on the form, like if you click the horns right now, they have no file as a
home.
So you should be past that request.
To our view, that means here it should be possible, this method area.
So that is our place should be visible.
Right.
So for the regions here, we have to do we have to actually create our this.
All right.
So that is our home, Eurail.
So now go to our portfolio and that is where you are, right.
So right now, we don't need this.
So that is actually all that comment.
OK.
So I just simply remove it.
So that is our Django.
That is our part.
So I have created one of the file that I have created on the file as a views, but into the what how
they will know that they have done what the file has a view.
So for the reasons here we have to do, we have to import it.
Right.
We have to import our this view file.
So because of all here, we have to create the connection to the what else to the view.
So for the reasons here, I want to do I want to get it out the from and from.
That is our same directories right there in our assembly area.
For the regions here, you have to have to only add that one of the dot, OK, that means the same directly.
And from here I want to do on the input our which file I want to import our D views file.
So no, I just simply added our these views file.
I hope you can will understand about it.
So right now we have created that connection of our with our views.
So from here I want to input our views file so no one to do and to create a sound.
You are apart.
So here after that.
After that I just name it as a part.
And the part area, I just simply, first of all, added one of the name and I just name it as a home.
OK, that means the homeslice that will be ARTPOP.
And also after that here we have to do we have to add what exactly should we get that data that means
something.
Our view I want to access our this method.
Right.
That is our home method.
So I want to access it.
So if you want to access it, then you have to do you have to use our.
With these views.
Right.
With these views, I want to do I want to access our which method.
That means we use function.
I want to access our home function.
Right.
So I just simply added our home function.
So friend, I think everything is very much clear to you.
So that's all you have to do.
So now let's check this out.
If you click as save all, I just need to save all and make sure you run your server.
So right now, our server is now running.
So now if you refresh it like here, enter.
Yes, you can see better.
I just put a little bit.
Percent that I meet, so that is you can see now showing us that this is our home base.
I hope you can well understand about it.
And so, as I told you, when you pass any case that you should be elected to our which position is
subjected to all this view seem to the viewing area.
I have created one of the functions that is our home function in the home function area.
I have created what Daddy done.
I just simply done our EDP response and this is our home base.
So for the reasons no consistent showing our this is our home base.
And also if you make that about because enters right now, you can see suffering at the pace not found
because of all I and I find any our base that means any other parts.
And I'll go to our you drill into the well I just simply copy it.
And now I just simply based I just made me desert about and then in our views into the viewing area,
I have created one of the functions for the about that.
Is this about right.
So now here I just simply name it as about and also I name another part, I just put that part as a
contact.
OK, contact us.
So that will be our part.
And into the view area I have created on of the function, I have created that function name as a contact.
Right.
So no, I just simply added our views with these views.
I just simply added our function name as a contact.
Perfect.
So now if you click the save all cyno, our server is not totally running and now I want to do on the
x axis I was about to enter.
Yes.
You can see it's not showing us that this is our about base.
That means it's dictate to our view and then our this function that is our about function so that the
views and that is all about function.
That is a global response.
Marseille's that industry personal message as this is our about base and now consistent showing our
this is our about base and also for the contact us for the contractors.
I have created another liberal I have created and the liberal as a contact us.
And now if you click the contact us click as they enter.
Yes.
You can see it's not showing that this is our contact space.
So no, it's perfectly dedicated to our views and the contact method and the contact so that they are
contact.
And here I simply pass on the written response and that is our message.
So now you can see it's not perfectly display or this message, I hope, is very much clear to your
friend.
And now also now if you want to access our home route and here you can see it's now showing as a page
not found because of all I didn't added any part.
Like if you go to our what else in the world, Sadiya.
I just added as a home.
Right.
So if you want to actually make that our home road, then you have to do we have to make the things
as empty and empty means.
That is our home directories so intolerable.
Actually, we use that means that our home directories right now in general here, you have to you have
to make that things as the empty, empty means that will be our home directly.
That means when it should be as a home directly, it'll be redirected to our viewers home at all.
So the views and there is our home.
So the home function area, I just sponsored this message.
Now, let's check this out.
I'm just going to save all.
And now if you refresh it.
Yeah, you can see now it's perfectly visible, our home base that is our home directly.
And if you added about that will be displayed.
What about directly perfect.
I hope everything is very much clear to your friend in your next video.
I will discuss about the database with the EDP response.
So thanks for watching.
I will see you in the next video.