Hello, friend will come back in a few years with you.
I have already discussed about that downplayed inheritance.
How can inheritance your template also how can edit that bootstrap into the Triangle project?
And also here I use of the bootstrap neighbor.
Right.
So we did that work on that area.
So now in this, we do want to discuss about that template filters like here if you want to display
some of the text with the idea.
So here I think you already know about it.
If you want to display, then you have to do it.
If you go to that view and the view, if you want to display that with addiction, with that idea,
you can defining it.
Right.
But I show you again, I just simply remove it.
So now in our index, so that our index function into the index function area, I define addiction.
Right.
So with this addiction, if you want to pass out the data like here, I define the name as a sample
example, underscore test.
OK, just simply the sample and context.
And now here I want to do and define some of the text names, like I just simply differ on the text
name that I am a sample text.
OK.
So this type of the text I want to define.
So here I have already dictionary in our index page that this index has Tamalpais.
I just simply pass it with this context.
So now if you want to display this idea, then what exactly you have to do?
You have to simply display with this simple text that is our first step index indexes.
Jamul go to our template Fastweb and the index ASTM.
All right.
So here, if you want to display it, like in particular H1 tag here on the display, so do the double
click bracket and then you have to simply define your simple text.
So now if you click on and save all.
I've had to file to check it.
Everything is OK now, I just refresh it now, because he is not showing our decided takes as I am a
simple text.
So now if you want to manipulate this text, if you want to formatted this text, then you can also
defining it with one of the building template filters.
OK, so with this template filter, you can manipulate it so you can do that work.
I will show you for doing this like that is actually our key.
Right.
So I have defined this key as a simple text.
So here from our view, from this position, I just simply pass out this text that in this video as
a simple text.
So here I just simply defending it.
So now I want to do on to formatting it.
So if you want to formatted with the filter, with the template filter so that it looks good by default.
So if you want to use it, then you have to do we have to define good after this, after this idea you
have to define the pipe.
That means a pipeline.
And after the pipeline, like a here I define under the filter key as a prop..
OK, I just simply defined on the filter key as upper.
So now if you click, as I say, Val, and now if you refresh it now you can see is automatically become
changed and every letter is now become uppercase.
And also, if you want to use another template filter as a law, then you can also defining it anywhere
you have to do.
You have to define make that things as a law.
OK, this is a law.
Savol, refresh it, analogously, every text is now become law cases, and also they have the filter,
which is actually ad sound.
The argument like I show you like here after this, like here after this.
They have also not the filter of the ad.
So after this year, if you want to define some of the argument like here, I define the argument as
the eight, OK, so automatically it will be at our deficit with our this text like here.
If you go to our view here, there are key to this kid here right now.
I want to try to define some of the aid value, OK, or the envelope.
So here I define the ten below automatically this filter will be at our distend value.
OK, so it will be at the ten and then plus our eight.
That means it will be at our extirpate with our simple text ID.
OK, now I'll show you like if you look at the Savol and now if you refresh it.
Now concedes the swing of the 18, that means he's actually added our this, so here from here, I pass
the room into the tent and after he leaves and after the turn of the eight automatically leaves, no
showing as 18.
Perfect.
I hope you can all understand about it.
And also here you can use that multiple filters.
So they have a lot of the things into the Django documentation's pretty much basic things.
So right now here, I want to do a lot of different things that go into the text.
OK, that is actually the text.
And I want to do want to added another filter like here that have all sun filter is a gap fast that
the cab.
I just simply the fast OK with this gap first you can actually capitalize your first letter click and
save all.
And now refresh it and now here you can see our first letter will be at the capital.
OK, so here if you put as a like here, I want to do want to make the terms of this more letter as
I can because I save all.
But here in our feature area, I define that as a ghaffar.
That means it shall be as fast as a capital letter refresh.
Now you can see our facilities become a capital offense.
And also they have that another filter as a card like here form to this or text front.
This text, if you want to remove all that, if you all want to remove all that E like right now and
then to remove our M.
OK, so here I want to remove him.
So if you can remove it then you can also do it.
They have all some of the filter as it got so into this kataria.
You have to define that.
Your argument.
I don't want to remove that m OK.
That means the M letter will be automatically removed like here I just click the save all and now if
you refresh it now, the aim is totally gone from here.
I hope people will understand about it.
So they has that next with our card.
That is our card filter.
With this you can pass that argument.
So that is our argument, as if M so M will be card from our main keyboard.
OK, that means what it is.
And also if you want to display that date from it, then you can also defining it.
But here you cannot actually define the date directly to the text.
So here you have to do we have to get these things from your database.
So if you go to our database, into the database, I have already answered some of the data in our that
is our musician into the musician.
They have sort of all the data like that is our musician.
And here you can see that with a jackhammer.
So now if you open it so that it acts with our musician, so into the musicians, they have no date
from it, maybe into the album.
I have defined some of the dead from it.
Yeah.
And obviously I have defined some of the department as a release date.
So that is actually the date from its announcement to get this date from me.
So that is the idea as a one idea.
Right.
So now to do and to define that as a one idea.
So first of all, we have to get it on here so that no, I just simply remove everything.
And first of all, here we have to define our database class name as an album.
Right.
Since the album, I want to take that objects.
So I just simply defined as objects and get objects.
Which one?
I want to take our picture with our one sided data.
So right now they have the our digital name as a one.
That means that I wanted data so to do and define our picture as a one that means or this one I.
So I just simply defined this one idea on here.
So now I to do on display our this fake filename.
So in our album into the album here, I have defined our filename as a release date.
Like if you go to our models into the model here, you said you find that our filename as a release
date.
Right.
So that is actually our database filename.
So now in our index here, I want to display this after this text.
I guess after this year, I want to do and define our Lesedi listed as a release date.
So now if you click as I all.
And now, if you refresh it, yeah, now not showing our distiller's dead as a may that the 28 are the
two zero two zero.
So now here, if you want to change that date from 81 to displayed with the using the filter, then
you can also defining it.
That is after this.
After this, you have to define the pipeline and then also to have the filter to date.
So into the date here you have also some restriction.
So first of all, if you want to show that our all the date, then you have to define that with the
capital, the OK.
And after that, I just simply defined the a comma is not important.
So that means after that date, as a Saturday or the Sunday, it should be displayed that date name
and then should be added that comma.
And then I want to do want to define our date and then it spares demand the capital and that year define
the year.
OK, so that is actually the format.
So that is what the general format here I define for this hour filter.
So now let's check this out if you're not clear to save all.
So now I just simply say, well, not to change that format because the refresh yeah, you can see it
now, first of all, is showing as a Thursday and after that Thursday, that is actually the comma.
So that is the comma I have used on here.
OK, so that is actually a comma.
And then our date is visible as a 28, then the month and then that year.
So far the results here are defined as a date and that month and then that year.
So here I'm using all the default that Django filter.
Right.
That was the Django, that filter.
So some of the time you may need some of the different filter for your specific, your project.
So if you want to create some of the custom filter, how you can create that custom filter in your 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.