Hello, friend, welcome come back.
In a previous video, we have successfully work with our media file.
That means right now, if you logging, would that mean and they have of the hour a table as about a
bill and it's about table here.
I insert the title there.
So the description and also that the image is right.
And also here we successfully updated our media link so we can actually display every data that we can
now display the title description, the images in our founding devia.
So here, how can display that our all that in title description and the images in our funding area.
In this video, I will show you that things with a live example.
So for doing this, first of all, as I told you how our this index is actually loaded.
So here, first of all, you can see that our home directly.
So I think you remember that part, but I just simply remove everything from here again, OK?
I just simply remove it.
So that is a portfolio.
That is a portfolio.
Perfect.
That means in our main portfolio area, if you go to that URL.
So that is actually framed mean basically a structure that you should know very clearly.
So that is our home.
But into the home port area, I include our index Etoile.
That means that is our project.
Right.
So that is our project index and that is our project index.
Etoile So here that is our home page for the home part.
I simply load it in our views, our home.
One of the function right that we see to the view here, I have already import that view.
That means the same index page and that is our view.
And here you can see that our home function see the the home function idea.
I just simply returned render request our e-mail.
That means our index e-mail.
So now our this in this e-mail is now loaded.
Right.
So here I want to do I want to actually get our this data and this data from our database table.
And also here I want to do I want to see the visibility on here.
So for the reasons here, we have to do we have to work.
You know what this method that means this function area.
Right.
Because here I want to visible it.
So if you want to visible it, first of all, I have to do I have to get all that our data right.
So I have to get all the data in our index into the index that is our model.
So into the model area, I have created our table.
That means our table name.
I have added as about right.
So from to this table, I want to actually get our title description and the images.
So here, if you want to get this data, first of all, here we have to do you have to actually import
it?
OK, that means right now we don't need this.
That means, in our view, in our index and into the viewing area.
First of all, we have to do we have to import our this model file that models file.
So I just simply added the from and from our that will be in our same directly.
Right.
So for the reasons here, I make it as a dot and then our models.
So from our these models, from all these models, I want to do want to get our this class that about
plus.
So now I just simply import import our D about class Redfearn.
So now into this area, I have already all the other fields.
Now I want to get all the data from all this table.
That means that is actually our about table.
Right.
Sended about us.
That is about table here.
They have some of the data I want to do and to get it.
So if you want to get this data, you have to do we have to get it by the object.
Like I show you.
Like if you go talk about the previously there had that about, I show you like if you go to that model
in the model area, I just simply added, I wanted to start with the self.
I just displayed the title.
Right.
But right now if you deflect it because I well so here every day to actually save one by the object,
if you refresh it now, consider exactly showing the object that is this object that I want to visible.
Right.
So for the reasons here, we have to do that work.
So right now I just said things that they are start and the self and the self written our title.
And the freshet legacy is not is a title that means every data we have to do, we have to get it by
the time by the object.
So for now, in our view into the area, we have to work right into the video.
First of all, that is our request.
So after that request here, I want to undertake one of the variables, whatever he wants right now,
I take one of the variables as about data.
OK, I take one of the variable and the variable area I want to do I want to actually get all that out
of the data.
That means our table, name or table.
I have already imposed it as about.
So I just simply added that about right.
And then all that our object's data.
So here we have to do we have to add that as objects.
So all that objects that I want to text, I simply added as the objects to all the data, that means
whatever the data in this particular object area, I want to get all the data.
So now I get all the data and take that data in our variable.
That means that is all about that variable.
OK, so I have to that we have to do we have to actually pass the second deposit.
You have to pass it with the context.
That is one of the dictionaries.
I just take one of the context.
OK, I just name it as a context of the variable.
And here I just simply added the dictionary into the dictionary area, as I told you, is actually part
of this parameter.
One is the key.
So I just named one of the name as a key as a about and also that it will be our values.
Our value will be our all the data I get the things with this variable.
So now I just simply based it on here.
OK, I hope is very much clear to you.
So now I just get all the data and now I want to do until I take the things with this variable as a
context.
So now I just simply parse this data in our index statistical.
So here I just simply pass it right.
And I hope everything is very much clear to you.
So now we can get all the data.
Now we can actually show our data in our index statistical base.
So now let's do that work.
That means that is our template in the template.
That is our index statistical right to this table here.
And after that about there is a clear title here.
I want to display that our description.
And here I want to display one of the inmates.
Right.
So first of all, I want to display our title.
So if you want to display that title, that is, you know, more about us thinking about us and then
and that is actually our title.
So here I want to display it.
So for now, I just simply remove it.
And here if you want to display it.
So here you have to do so.
From here we have to show our this actually that is actually our key with this key we can actually displayed.
So now I just simply added that key.
And here one things, as I told you before, in the context area by default, this one, that means
right now they have the one data.
If you go talk about there is the one.
So one is that means the zero index.
Right.
So as I told you, in PZP, we call it as Aribert in Django, let's call it as a list.
Right.
So in the list actually started from the zero index.
So that is actually our zero index data.
Right.
So if you insert any other data, then it should be as a one index data so that they have only one data.
So that will be as a zero index data.
So for now, I want to show our this zero index, this title.
Right.
So now it can actually displayed.
So that will be our about into the about area.
That will be as a zero index data and it is a zero index data area.
I want to display our field, Phelim, if you go to our model, our filename, I have added as a title,
so now I just simply display that title.
OK.
So now if you click on the Savol and first of all, the ticket server is perfectly running on naughtier.
You can see perfectly now running.
So now I want to do AndroGel refresh it.
So now here is showing some that or the function object has an attribute object.
OK, so that is all about so here actually is getting some of the error.
So let's check this out.
So that is all about how different our this method name and our this model is actually the same for
the reasons actually getting this error so better and don't actually change our this method name.
So I just name it as it about us.
And here I also want to update it as they contact us.
OK, so now it's still be work perfectly.
So that will be our method.
And so far two of this method here.
Also we have to update it inaudible like here.
If you go to our index into the index, that is all still so into the world.
You can see that it is actually also here we have to update.
So that will be about us.
So I just simply updated about us and then there will be other contact us.
OK, so just simply updated.
That means in our view there is a clear method and that is our name will be the same.
Perfect.
So I hope you will understand about it when actually.
Why actually getting that at all, because of all our modelling and our method name actually the same,
so for the reasons is actually clear, some of the conflict, so long as these are very strongly running
and now if you refresh it.
So now here you can see it's not perfectly visible, so if you want to change it, then it should be
better like here.
I mean, name it as it is eLearning.
OK, I just name it as easy learn, OK?
Just name it as easy.
Learn to save those successfully updated.
And now if you refresh it.
Yeah, you can see so perfectly updated, that means this doctor actually comes from our these stable
right to successfully get that title.
So, no, it's perfectly visible.
And also here, if you want to change the trick, like here, I get all the data and also in our index
area, I just simply added our own index to the right.
So if you want to change it, you can also change it like here, in our view, that means here, here,
if you want to add that your index like that will be our first index data.
I want to get OK, so I just simply added our first index data on here so that when the zero index or
zero index, when you add it on here, then in particular that position you need to add anything so
into the about area.
So with this about I want to display our database stable field as a title.
So now our result will be that just like Dersim, if you now refresh it now you can see the result is
just like that same.
Right.
I hope you can well understand about it.
So also after that, that means here, here I want to display our description field.
So now go to that our bettag and that is our URL and the P this one.
Right now we don't need this.
I just simply remove our P and you will.
So that will be our description filius.
It'll be just like that.
Same.
So here better.
I just simply copied, I just simply pasted.
So with this about right.
So I just pass all the data that is our key.
So with this key I want to do I want to display our database field or database field is for the description.
That is the description right now here I want to do on display that description.
So now if you click the save all and now if you refresh it.
Yes, you can see, Fred now is perfectly visible, our total description, right, so here little I
will also show you how you can actually display different type of Pondexter on here.
So right now are perfectly still visible.
And here I want to do and visible our image.
So I have also one of the images.
So that is a clearer image.
Right.
So I successfully display our title.
Our description is perfectly dynamic and now I want to update our image.
So if you want to display it, first of all here, you have to do we have to go to our particular that
position, that means that is actually our final location here on the display it.
Right.
So here we don't need to use that a street so better.
I just simply remove that H3 tag and here in particular, that area.
First of all, if you want to display that image, you have to add that image tag.
Right.
So I just simply added that image stack and the image area.
So here I want to do with this about this, about I want to display our database filename, our database
filename as the images.
So, no, I just simply added that image that also here we have to update that you whatever that means,
in particular, that area that will be our about and then our filename and then here after that, we
have to use that.
You are OK in this image.
You are.
So I just simply added and also here I want to put some of these still for our D.C. high and wide.
So better here.
OK, here, I want to add one of these style.
I just simply added on the style and into this area like it should be as a height.
So I just bought one of the height.
Height will be as to 200 pixel.
OK.
And then also I want to display our wide so wide.
I want to set for this image as a whatever you want.
So I make the things as a 400 pixel.
OK, so I just simply added one of these style and I just saw the height and weight for this specific
image.
Now let's check this out if you're not looking to save all.
So now if you like freshet.
Yes, you can see it now successfully display our e-mail, so that is actually what means if you go
here, you can see the he right.
So this image is now perfectly visible.
Now, what title is totally dynamic is also comes from our database, and that is our description.
So if you want to change anything into the description area, if you want to change anything, if you
want to update your title and you can save.
Refresh it.
Yeah, you can see everything is not totally dynamic and everything is now successfully updated, so
I hope friend is very much clear to you and also here that sure, I am only display our zero in the
startup because of all I have only one data right there, only one that is if you insert any another
one like here reports on the title.
I put some of the description but I just copy some of the description, OK?
I just simply copy some of the description.
And I just said I just threw some of the images right now.
I chose this one as an open so that it could be our emails.
And if you look at the same.
So now, friend, there is actually another one, so for this object, actually, that is our another
index as a one index, that is not a zero index, but I added as a zero index.
Right.
So for the reasons here, it not should be visible that it will be visible.
I show you like if you not at the refresh now you see it's not showing our whose data is not showing
our zero index data.
Right.
So as I told you actually yesterday, that started from the zero.
So right now, if you want to visible all this data, so then we have to do we have to update that list.
Our one data I show you like here that is all zeros.
And I have to do an updated.
I make things as a one.
OK, I want to show our one index data.
Now, if you look at the same wall now, we should be very much led to, you know, click the refresh.
Yes, you can see friend now is perfectly updated, that means that is our one index status.
If we split our zero index data, that will be our first one because I save all and now refresh it.
Yeah, you can see it's a perfectly display, our zero index data.
So, as I told you, it started from the zero.
So that will be zero index and that will be one index.
So, Fred, I hope it's very much clear to you how can read all the data from your database and how
can visibility in your funded area suffer?
And that is actually the main cool thing.
OK.
So if you will understand about that goal, then I think everything, if you want to make that site
dynamic is will be very much easy to you.
So, you know, next we want to do and actually update our that.
I want to make these things as a dynamic so we can do that work in our next video.
I will show you that things with a live example.
So thanks for watching and I'll see you in the next video.