Hello, friend.
Welcome back.
You know, all previous videos I have already discussed about that views, how can working with The
View, how can create the template?
And also how can working with the model and with this model here, I also define some of the model into
the model.
I have also seen some of the data.
Right.
And also then we can actually access our admin panel.
So that is one of the building had been panel, as I told you before.
So now I want to do I want to read all this data.
So here I would read all these data.
And in these data, I want the visibility in our base.
So how can do that?
Work is pretty much simple things.
If you actually understand that main mechanism, like I show you, if you want to do that work, first
of all, right, now, we don't need this.
I just remove everything from here.
So first of all, you have to do we have to go to your apps.
That means in your application into this application, that is our views.
Right.
So here I have defined two of these models.
So introduce our applications in our applications.
That is, our models seem to these models.
I have to have this class or one is the musician and another is that album.
Right.
So first of all, we have to do we have to import two of these in our view area.
So now into this view area.
I want to do I want to imported so from and from our fast app that means fast app and from the fast
app I want to do I want to access our models.
So right now I just want to find the models and then I want to import I want to import all of this data.
That means here I have already created this class.
One would be as a musician, so one would be as a musician, another will be as an album.
So I just simply define and there will be as an album.
Right.
So here I have defined all the important.
Now, if you want to visit Bollywood, first of all, you have to define that things with a specific
one of the variable.
OK, so right now in our index Matosi here, I have already created all the function that is our index
function into this functionality.
We have to do that work.
So here I simply define all of the variables and I just take that variable as a musician list like a
musician under the underscore list.
So whatever the variable you want to take, you can take that song on here.
And after that you have to define your table.
That means in our name, our last name as a musician into this musician, I want to define all the talk
of this.
Right.
So if you want to define that, then you have to define as objects to simply define as objects.
And then if you want to also define that as an order by if you want the visibility as ordered by, you
can define that order and underscore by OK, sorry, order by and into this order by I define it will
be order by Baez, whatever he wants.
If you want to make that things order by the first name, last name of the instrument, whatever you
want.
OK, so now I want to make that things are still be order by as a first name.
So that is our field name.
So to simply define our first name.
OK.
So that is actually the procedure for in Django.
But if you use that in our PSP, what exactly did into the PSP?
We did like that way, like we define as a select committee.
OK, that would define the select all sorry select all from our table name or table will be as a musician,
as a musician and from the musician.
You have to define that order and by order by your full name.
That means our filename are the data that the first name.
Right.
So we actually define that query in Django.
We have to define that like that way.
I hope you can well understand about it.
So now here I get all the data from our musician table here.
I take all the data and take the things with this variable.
Right.
And now here we have to do we have to pass all the data in our dictionary.
That means in our diction.
OK.
So here we have to pass it.
So if you want to pass it, you have to pass it with the key.
So for the resource here in particular, that area want to define one of the key as a musician.
OK, let's take the key as a musician.
And in particular, that position here, I want to do and define our this variable.
So I get all the data and take the things with this variable.
Right.
So now I just simply pass that variable on here.
OK, efferent.
So now in our return request, I have already passed out this discussion with this context in Laravel,
what exactly we did.
If you already knew about the plural framework, intolerable framework, we it with the compact.
Right.
So with this compact we pass all the data.
So now here I just defined that in Django with the discussion and the distinction.
I just pass our D KeyData.
So that is our variable, in particular that variable.
I have all the data.
Right.
So now I just passed this discussion.
I just passed this discussion, Hegazy, into the context.
I just it so now we can actually access all the data in our files up here that have also the.
Index today, e-mail right here.
I already passed the request, so now we can actually access all the data in our particular.
This index today is Tamalpais and also in our discussion here, I have defined some of the ideas to
know how to do and to change tactics.
Then it's a little better.
Like here I decided that this is a list of musician like musicians.
So I just generally find this type of one of the text right now.
I have already discussed about that things with you.
How can this play so no end to this play before I display our ideas.
So here I displayed that idea in our index system.
So now one to do and to display all that our database data.
So that is our all the database musician data.
So now I to do I want to use it in our index system.
So now open our index system also.
Now if you go to our index e-mail, so that is in our template into the template, that is our first
step and that is our index, SDMI.
Right.
So here I want to display all that, our data.
So I have already loaded our aesthetic, all the data that is a title.
So if you want to change the title right now and to display all determine the status of the trial,
to define as a musician, to musician, to list all the data, that will be our title and that is our
bodies.
The body area I want to do here, like in our H1 tacking to this H1 tag, I want to display our this
ID, so that means our tax I.D. I just got it from here and better.
I want to learn to use it on particular that position.
So that is actually the idea I have already defined.
So here I have already found in our dictionary that is our idea to this idea that actually the text.
Right.
So now it shall be displayed by the creditor.
Yes or no?
We don't need this.
I just simply will read it also remove our images, because here I want to get all the data from our
database table and on the visibility on here.
So for doing this, better to do on the display with the sun using side the table.
OK, so here I define some of the table and also we have to finish the table.
So just simply finish the table.
OK, and then also for this table, I want to define the class that actually be better and define class
rather than I.
But I want to refer the border, OK?
I just simply defined the border as a one border and then I will define the tier.
That means the table roll.
So into this table we have to finish it.
So just simply finish out this table and this table, the area I want to take hold and that means that
table hit.
OK, so I just simply defined the DH also we have to finish the DH, so I just simply finish it.
Sorry, finish it.
So into this area I want to do first of all I define that as a first name.
Last name.
Right.
So for this position I have the three field as a first name and then I want to display our another one
will be the last name, last name.
And also I define if you go to our fast ab and that is our models and can defined as the first name,
last name and the instrument.
So I just simply define another one as an instrument.
OK, just name it as an instrument, perfect.
So now I'm too old to get all the data, so which I have already defined that things in our view.
I get all the data and take that data with this variable and also pass it with this key as a musician.
Right.
So now we get all the data with this.
So now I want to learn to follow it.
So if you want to add that voltage into the jungle, how can do that work?
Its will be pretty much the same things here.
You have to define the calibration and the double percenters.
OK, to this double percent is here.
You have to define that your for loop.
I just simply defined the four and I just name it as a role and role in your key.
So here I have defined the key name as a musician, so I just simply copy it.
And now here I just simply defined that musician.
So I have only to get all the data that means from our musician, all the data and take that things
with this key area.
Right.
So now here I just call it in.
So not only if you want to visible all that, feel that you have to be to lead with this.
All right.
So here we started one of the four loops we have to do.
We have to finish it.
So after that, I want to do finished with this CARLEBACH.
It will be the same command centers and into this double pass sentence here you have to define as and
for.
OK, I'm just simply defining it in particular that area I want to do and define our here again.
So just simply defined as a tier that means the table.
And then I just simply defined the tier close and then in particular that position.
I want to display all the top tier data.
That means the table data.
So I just simply definitely and then finish started.
So here I want to do on to display our first name.
So for the first name, I have defined that filename or filename as a first name for a musician.
Right.
So I just simply copy it.
And as I told you here, I get all that our data with this key as a musician, musician.
So if you want to have visibility, you have to visibility with this role.
OK, so here are definitive role.
So one of the things you will put on that area, you can display that name with this.
OK, so right now, for education purposes, I'm using that role.
So here, if you want to change it, you can change it from to this position.
So now I want to visibly then you have to define the double calibration and then with this rule.
OK, so with this draw, you have the visibility so that somebody finds a role and then are feeling
them.
So I have already defined our database.
That is our Fastnet platform.
So now I just simply copied it because here I also want to display our last name and the instrument.
So our another feel as a last name copied here.
I define our with this role.
Our last name and then the instrument.
So I just simply copied.
And here it is simply pasted and that's all you have to do.
OK, so here I have defined our 40 stop.
So that is our 40 slope into this slope.
I display all that, our data.
So here I just defined that for this loop in Django and then I just.
And this forest.
OK, so then that is our historical data.
And also here I loaded our aesthetic and successfully.
So that is on my Celsius file and here I defining it.
So the text will be as H1, so should be as a rate.
Right.
Now let's check this out.
If you click the save all like I just click, I save all, they just clear the table all and make that
Sheherazade very stunning.
Yeah, our survey is done perfectly running, so now I have to do and refresh our pace.
So now that it appears refresh it, yes.
Now I can see Fred.
Now, that is actually our idea is visible.
And for this idea, I have defined some of the CSA as a part of the H1 tag.
And you can see it's now become changed.
And also I define our table and the table.
I have the tree field as a first name, the last name and the instrument.
Right.
So now you can see that is all that that actually comes from our database.
That is not to be static data.
So that's all the raw dynamic data is now comes from our database tables.
So into the database you can see the object with Jack Ma Suda, the Jack Ma and that is actually Viljoen.
So here is not perfectly visible as a jack and the our last name as a ma and then our instrument and
then also I just define first name, the cuzzi, the last name Ardian and the instrument as a guitar.
So friend I hope is step by step you become very much easy to you because here I think, you know,
you can well understand about how you can read all the data from your database.
How can Raniere foreach loop.
So that is our foreach loop.
And here, if you want to visible your data from the database, how can we lead in our index template
area?
So now it should be very much clear to you.
So as I told you, don't worry, I'll step by step, will go more deep and after end of this course
you will have a much better idea about the triangle and everything will be very much easy to you.
So, you know, next video on to start a new session.
It's about that general forms.
So how can actually deal with that?
Django forms, you know, next video.
I will show you that things with the live example.
So thanks for watching and I will see you in the next video.