Hello, friend, welcome back.
In a previous video, we successfully get our specific idiota and visible that things, in our view,
pates, right?
So right now I want to do if you go here into these positions, like in or Elbaum into this album,
that I'm also not the specific Olumide as the artist Idy.
So now I want to do I want to get a specific this artist idea, all that name that means all that album
name.
I want to get it and I want to visible it in our displays.
That means in our album leastways area.
So before doing this, I also want to share one things with you.
I want to compare our skill Cutie and our Django Coeli.
Like here you can see the reservoir when you actually get all the data from to the database table.
So, you know, squill, we actually find that this GUI right now to select all from our database table.
But in Django, if you want to get all the data, then you have to do we have to define that things
with the work, every name and then all objects that are the objects and all data.
So that is actually relevant.
That is the same query.
OK, so this is actually used for our query and that is what our Django query.
And also if you start with a specific one of the added data.
So, you know, previously we have already defined that part, that this is will to the scale we have
defined as a select all from our musician table where it will be as a one.
That means that is actually one of the specific idy.
Right.
So obviously we have already defined that part.
That is where it will be as a one.
And in Django, we have defined that things a little bit different way.
In Django, we have defined that our to be Lemp, that means our table as a musician and then objects.
And then if you want to get a specific data, you have to define that as a gift and then you have to
define as a picture that means that Primerica is equal to one.
That means you get all the primary.
Q One idea, specific data.
So here you can define that, things like that way.
And also here, if you want to get a specific Royte data, that means here you can see into the scale
we have defined that things like that.
We as a select all from our album that we select and that all from our album table and from to the album
table where our artist as a one the artist means actually if you compare it with our this table.
So here I have defined that filename as artists underscore idy.
OK, that means here, if you compare it it will be as the artist underscore sorry artist underscore
it.
So in this position I want to get only a specific artist and describe the 180 data.
OK, so that is after this query.
So if you want to run the same code into the Django then you have to define your table name as the album
objects and then you have to define that filter.
So with this filter here, you have to do you have to define your destroy the data.
That means we show ID.
I want to pick.
So here you have to do you have to define that as a as an artist I.D..
So right now in our database field as an artist unprescribed.
Right.
So with this artist idea you have to get your specific data.
So now we will use it, because with this we want to do with a specific artist idea, all that album
data.
I want to get so that there is actually the one specific provided that I want to take so far.
If you want to do that work, you have to do you have to work, in our view, into The View, and that
is our album list.
So here I want to learn to take it.
So better in particular that position.
So I just take one of the variable as the album list.
OK, I just take the album and the list.
So that will be as the album list and the album list variable.
I want to define our table name.
Our table name will be as the album.
Right, because I want to get all the data from this table in our model.
I have already created this table as an album, so I just simply copied and here our album table.
And then we have to do we have to define as object right around the objects.
Then if you want to get a specific role in the data, then you have to define as a filter.
I have already discussed that things right.
You can see that is actually that I want to get specific this related data.
So if you want to get this sorted out, how to define that as a filter.
So I just simply defined as a filter.
OK, and and the filter here, you have to define your field.
So here I have defined what this filename I have defined over this filename.
If you go to our model into the model, I have defined this filename as an artist.
OK, so by default that I was actually created this idea that when the artist unprescribed so here we
don't need to defining it because I have already defined this filename in our model area as the artist.
So for the reasons here, it's just simply finding it says this one that is the artist.
So I just simply defined in particular that area as artist and also.
After that artist, we have to define our physical to want it right, that is this one actually the
idea so here is equal to and it means here you our are into the you.
I have already defined all of the ideas.
So that is actually our idea.
Right.
And also I defined this idea in our function.
That means into the function here.
You can see it simply define our distinguish that idea.
So that is actually our requested idea means if you go here, you can see that it already existed.
It's OK if you go home, if you go to the Kazarian, you can see directly the one idea that means the
one.
Because that idea so this idea I have defined I have defined that things with this artist idea.
So now I just simply define I would decide.
I hope Prendes should be very muscular to how actually I get our specific Royte data and now I just
take all the data and take the things with this variable.
Right.
So now we have to do we have to pass it in our Albermarle space because here I want to visible it.
So if you want to believe, then you have to pass it in your direction.
So simple things.
I just simply defined our album list here.
I just our album list.
OK, so just simply pass it.
So now we can use it with this album list.
So now we want to use it in our alonely space.
So now go to our album list, leastways.
And here, first of all, I want to take one of H.R. then it's a little better.
I just simply all the tag and now I want to display it with using one of the tables.
So but I just simply defined the table under the table.
I defined the TR that means the table roll and then I defined the DH.
That means that I will head and I just name it as an album.
Right.
Album name I want to display.
And also after that I just copy it.
I also display are all that field.
So right now that is our field name so that it will name the release date and also the rating.
That thing is actually that a number of steps that there is a three field.
So I just simply defined as the album name and the release date.
OK, release and then date, and also I want to take another one for the rating, say, to simply defend
the rating, OK, so now we have to do we have to visibly.
So that is our.
So after that after that, I wanted to undertake another tier.
So I just simply another Cabildo.
And then also we have to define that our TD.
So I just simply define that.
OK, so into the tier, that means here I want to do want to add our 40 Sloup.
So if you want to add that for each, I think you already know about it.
So here at the front of the four and now we're just naming the album.
Right.
I just name it as the album in you know from our view Pei's I pass it as the album lists, I just simply
copy it and I just simply passed it.
So here, whatever you want.
Actually you can.
I am using that album.
It doesn't mean that you have to use that album.
You can use anything else period.
OK, so now what with this album we can actually display all that, our album field data.
So now with this album, so with this album I want to do want to display our album name our album name
field.
If you go in our model into this model, I define that filename will be as a name.
Right.
That means that is actually our database filename.
If you go our database, you can see that the name there is the release date and the result number is
better.
Go to this texture.
That is actually the name I just simply copied.
And now here I define with this album I want to display our name and also we have to do we have to finish
it.
So we have to finish our for.
So here I just simply define as and for I just simply finish it.
OK, so that is our and and that is our table.
And after that also we have to define our another feeling empowered in order to have this field.
So here or another feel is a release date.
And for the release date or filename as a release date complete, I just simply defined I was alright
with this album as a release date.
And also there is another one as a rating, a rating filename I have defined as a number of steps I
just simply copied.
So this album I define as a No.
Ester's perfect, so that's all you have to do.
Now, let's check this out.
If you click as save all, I just care to save all.
Everything is perfect.
No, go here now.
I just go to the home like here I define as a ghazarian.
Yes.
Now can friend.
Now that is actually our all the data comes from our wish table.
This data actually comes from our musician table.
And also here I define that our aspecific provided to the area, our specific royalty that I as an artist
with this artist Eyedea now I actually get all the data from our album table.
Now you can see now for the Arion here have defined the check.
So now if you compare it, go to the browser.
Now, ARIADNI actually that means ID as a one.
Right.
So one idea that I define as of the album, so an album name as a jack and there is a release date and
also I display that rating and also another want one and that is our name that is already listed for
this album perfectly is now displayed to have this on here.
If you go, if you go to the Jackson you can see for the Jackson, I have defined one of the one albums,
so that is actually one album is visible.
So if you want to add some of the class, that means in our table, I have used some of the tables in
the bootstrap that have also not dotted with us like into the table position at the front of the class
as I have already added our CD.
And that was the most obsidian side find on the tablecloth at the table and the table.
Baudot So just in front of the table border.
RTR Eddie OK, so this step up one of the class in one of the bootstrap class, I'm using it as a Savol.
And now refresh it, yeah, you can see snow now looking perfect, so that is our album name, that
is our release date and resurrecting Go Home.
Kazarian Yeah.
Putting it in our perfectly abusable.
And also here, I don't have the only two that are if you want to get all the data with the order biting,
I think you already know about it, then here you have to do so.
That is our artist to hear.
You have to define our as in order order by and then what.
By what the feel you want to define.
If you want to order by that name.
If you want to order by to the release date, you can defining it.
Right now I'm using that name.
OK, I am using that name, so there is an order by another name to save also Tokarev only to data.
So shall we say maybe.
I guess it's not actually simple, so if you have multiple data now, which will be organized, that
means we get all the data ordered by the name.
And also here I define that rating.
So right now that the two rating of the five and the four.
So if you want to find out that average value, then you can also defining it.
So in Django, they have also another model.
So you have to first of all, here, here we have to, first of all, imported that.
I'm also one of the building models.
So I just simply defined as a form and then Django, OK, Django and then Liebe and then model.
OK, models and the models, we have to import it.
Sorry.
So we have to import average.
So that is also one of the building model as bodies.
So now we have to do we have to define that things on here.
So for doing this in particular that position.
OK, here I take another variable, I take it as a orchestrating artist and risk rating.
So this type of one of the variable I just take and then it will be just the same.
I want to define that album, our class name and then objects.
I want to get all that objects and then filter.
OK, then I just simply defined as a filter and filter will be our artist.
So our artist will be our artist idea.
That means the artist idea.
And after that they have also the method as a headgate.
I just simply defined as the aggregate a double the artist Yati maybe.
I'm not sure actually forget it.
The image may be aggregate.
OK.
So now let's check this out here.
You have to define that aggregate.
And then with this aggregate, we have to define our this building, all of that class.
So here I define that class as the average.
OK, so in this position, I want to do two averages out, which I want to have a reservoir that is
actually our film.
That means here are here.
I have defined all that ratings.
Right.
So that is a filename as a number is.
So I just simply copy it.
And now here in our average area, we have to do we have to add it that that means that our number.
OK, so no Eastertide.
Take the things with this variable.
So now we have to do we have to also pass it in our dictionary.
That means here I want to visible it in our album space.
So after this after this, I just simply defined as artist and then I name it as orchestrating.
OK, so now these are the setting.
We can actually display our average value.
So now go to our album list here.
I want to display, uh, so here after this, I just take one of the S for Tak.
I just have this for tag and here I name it as are disturbing.
You are distracting.
And now I in that position I want to visible lead with this artist because from here I posit in our
dictionary as a orchestrating that so this orchestrating we can actually visible.
So I just simply defined as the artist adding and also here we have to do, we have to define our filename.
So I have defined our filename as a no easy task with this number.
Is Cerf's also here?
If you want to define that Ivory's, then you have to define that ever.
OK, like I show you, if you displayed you have to do after this after this year, you have to define
your filename are filename as a number Ester's and the number is Turse I want to do and we split the
average stepmoms AVC.
OK, that means everything.
So if everything OK now should be visible.
Let's check this out.
If you click as I save all.
No, I just refresh it, yes, because it's not perfectly working, so that is actually our artist getting
as the author is often is automatically calculated to have these.
As I told you, they have the building, one of the methode.
They have also the building of the class.
Sorry.
There is also one of the building class as an average.
So it is average.
I have defined that irrigate and with this irrigate I define our average.
So now it is perfectly calculated to have this hour this data and now it's perfectly visible.
So I hope you can all understand about the trends and the step by step.
I think you are going to like it right.
Because everything as it will do, if you know that basic all the things, how much easy to create the
project with the jungle, I think you will understand it.
So here, friend, for the court applications, I have already complete our two portions.
That means from here and now we can insert that data.
And also from here we get a specific our data right from here.
Also we get that data.
So now we have to do we have to complete our edit and the op ed portion and also the direct portion
so we can edit your album with the specific of data.
And also how can delectably step by step?
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.