Hello and welcome back.
In this video, Underdo underworked down to the class as a least viewed class citizen to working with
this Leesville class first to fall into the area, we have to import our diskless.
So before we have used our template abuse and now I want to show all that, all this data.
So they have also entered the building glance at the list view.
So just simply load it, OK?
So now on to do and to get all the data from our database tables or to the database that we like have
already created the database table as a musician and into the musician that have all the data I want
to displayed in our home base.
So for doing this better and to do and update our base, that means here into the Tampa area, I want
to create the new base and they just name it as a base.
So she'll be just like the same before I take on the business html right into the business generally.
It'll be just like if you go to a main template.
So here I have already added our all the success and the Jessa's.
I have already created one of the blog Baldie.
Right.
That is our and blog.
So better than to copy everything.
I just simply copy everything from here and now, you know, our template in our first application template
and here I just simply say it and I just make that things as a PSP.
So that is the python.
And that is a PSP, so now here we don't need to do anything because of all I think you already know
about it, what exactly the things I did on here.
I just laud our.
I load that our bootstrap JS file, and here I define some of the blog ID that is our body blog and
that is our neighbor.
Right.
So right now I only want to do want to take one neighbor and into this position.
That is all you are for the whole area.
I have already defined our app name as a fast apps with this fast app.
I want to load out this part that is our home part.
I just named this part as the index.
So with this our name app.
Right.
So with this name, I just simply define our world as the index.
Perfect.
And also here I have defined our body.
That is the body block.
So if you go to our index, so here we have to also extend it.
Right.
So we did that work.
If you go to the template, if you go to any other pages, like here, a long list.
So here we have actually had two of these to extend extended hour faster than the basic HTML.
So right now we don't need anything.
I just simply remove it and also I just simply remove it.
OK, so here I have two also ended.
So that means the end blocks.
I just copy.
And then after this I just simply added that and block.
So I think you already know about it.
Right.
So here if you want, I will display your H1 tag into the H1 tag.
I have already passed the context data.
So here I pass it.
So from here, pass out of the sample one.
So not only few displayed, there is another one as a tool, right?
So that is another one of the sample text, too.
So now if you want the visible lead, Nokia, the save all, now go to your index as a refresh.
Yeah.
Now can see so perfectly getting our neighbors.
That means our partner is home and that is our sample text.
Perfect.
So now in particular, that position I want to do want to load our all this data that means here, that
is our musicians from the musician table.
I want to get this data and visibility on here.
So for doing this, we have to do we have to work in our class area.
So now go to our view so that you have this time.
We don't need this e-mail list.
You don't need this.
Now, go to that.
Our view into the videos right now.
I just remember everything, OK?
So I just remember wanting to know what to do and to get all the data from our models.
Right.
So into the model area.
I have already defined all the data that means the musician and from the musician, the builders here,
they have their first name, the last name and the instrument.
Right.
So now I want to, first of all, load out this model.
So that is in our fast tap and that is our model.
So we have to, first of all, load it.
So here I just simply defined the form sorry form and then our step fast step.
And from the first step, I want to bluntly to import our widget.
I want to put our models right.
So I just simply defined the models.
So that is our first application into the first application and that is our model.
So to simply import our models, to know what to do and to show that list, do so for that list, do
they have also one of the building class, Azalea's Bueso?
I have already defined that list bu so no one to do to create our class.
So that is our class as I name it, as an index.
Bu and here that will be inherited our this class.
That means the least view class size as simply defined as a list.
You know here we have to define the same things as a model.
Right under the model here we have to do we have to pass our models.
So with these models and our model name so into the model area, I have defined that our model name
as a musician.
So I just simply copied and then I just simply defined our model.
And after that, also you have to do how to display our this index.
That means this index.
So here we have to pass it.
If you want to pass it, then you have to pass that things with the template name.
Right.
There is a template template.
Mhm.
And here we have to do we have to pass our template name.
So that is in our templates.
That is our first app folder into the foster pulled together index estimate.
So I just simply defined as a fast like a fast app and it is a step that is our index.
Dr. Stamoulis, I just simply defined that name.
And also here we have to pass all that our data.
That means that actually I want to get from a master musician table.
That means musician table all the data.
I want to get it and I want to pass it in our index.
Sustainable pace.
So you want to pass it, then?
You have to really have to define that things as a context object that in the context, context, underscore
object.
OK, name it as a context of that name.
So with this context object name, you can pass it.
I just now want to pass it with the musician list.
What about the name you actually choose.
So now I am using that musical list.
So now with this mediation list we can actually display out all that musician data from our table.
Right.
So from our table, so from the musicians table and I get all the data.
So now I want to do and the visibility into the index based happiness index esteemable with this musical
list.
So now go to index SDM.
So here we will need this.
I just simply a movie and here first of all, I want to undertake one that you will OK.
I take one that you will see that you will.
First of all, here we have to load our FA.
That means the for loop.
So to simply define our for this will be just like the same before here we have to define that name
as a musician, whatever the name you actually choose.
So here you have to define it in, in whatever the data I just passed that things from our class.
So that is our context.
In the context of the class name.
I have defined that name as a musician.
Right.
So now with this mediation, at least we actually get all the data.
And I just defined that things with this musician.
So after that so here after that also we have to do we have to end it so better.
I want to do I want to end our four.
So I just simply defined as and for a note here, I define as élite into the L.A. area.
I want to display our I'm sorry.
I want to display our musician all that name.
So there is a musician with this musician.
I want to display our database filename or database filename.
I have defined as a first name, last name and the instrument.
So now I just simply defended the fast name, first name, and also I want to do under this display
our last name.
So right now, I want to actually display two of these as a first name.
And also I want another name as a last name.
So I just simply defined as a last name, like a friend.
So that's all you have to do now if you click the save all.
So here I display our first name and I also display our last name with the musician list.
I get all the data from our class.
I get all the data from our class and also that is our enterprise for loop into the for loop.
I have used it with our musicians, so that is a musician, first name and musician last name.
So none of us have allowed to check it.
Everything is running will now go to our home click as a refresh.
So now they have some data or as a fast app musician these days that exist used to not exist because
of all.
If you go to view view into the view, I have defined that name.
That is the perfect with the model and the models.
I get all the data from musician to build the template.
You can see that spelling mistake.
It will be as a template under its good name.
OK, that means that with this template name here, I have to pass out this name.
That is a fast tap and the index is Jemal.
Now let's check this out because I save all.
And now refresh it.
Yes, numbers of now appropriately get all that our view list.
That is our musician and the musician they had agreed to right now to this story that I read it and
also visible in our index base.
How much is it, as you can see, how much easily you can actually now displayed so that you actually
know about all that functionality with this, you can pass your name that in the context object name,
whatever the name you will to pass in our index page or whatever the page area, you have to declare
that things with this name and then with this model I get all the data from our model statement.
And then if you want to load some of the template, then you have to load it with the template name.
And here I have already defined that our folder name as a fast app and that is our index e-mails into
the index decimal.
I pass our this context object data.
That means here I have it for the reasons here you can see into the index.
I just simply define the for each store with this musical list, I name it as a musician.
So with this musician I display our first name, the last name if we want to display Egleston and then
you can also displayed.
So now you can see it's not perfectly visible.
It's better if you want to add some of these spaces.
I want to add some of the painting top like here in our business HTML.
If you go to that page e-mail here, that is our container.
So here I want to do and define the style and the style at the front of the building, top side assembled
in front of the painting top and here I take as a 20 pixel.
So just simply of the 20 pixel, not click as a Savol and now refresh it.
Yeah, you can see it's not perfect so far and that's how you can actually display your all that view
list.
So with this view list class.
So this is a new class.
You can actually display your all the at least view from your database.
Right.
So that's how you can actually do it.
So obviously we have defined that things with the functions.
Now we are discussing about the same things with the class.
Right.
So, you know, next video and we discuss about the details view you like.
There is all these Bueso here.
If you click at the Kazarian and it should be Dacota or another piece with the details information.
So how can this displayed in our next video?
I will show you that things with a live example.
So thanks for watching.
I'll see you in the next video.