1
00:00:00,240 --> 00:00:03,340
Hello, friend will come back in a few years with you.

2
00:00:03,360 --> 00:00:06,560
I have already discussed about that downplayed inheritance.

3
00:00:06,680 --> 00:00:12,420
How can inheritance your template also how can edit that bootstrap into the Triangle project?

4
00:00:12,420 --> 00:00:14,930
And also here I use of the bootstrap neighbor.

5
00:00:14,940 --> 00:00:15,250
Right.

6
00:00:15,690 --> 00:00:18,280
So we did that work on that area.

7
00:00:18,420 --> 00:00:24,540
So now in this, we do want to discuss about that template filters like here if you want to display

8
00:00:24,540 --> 00:00:26,270
some of the text with the idea.

9
00:00:26,280 --> 00:00:28,800
So here I think you already know about it.

10
00:00:28,800 --> 00:00:31,330
If you want to display, then you have to do it.

11
00:00:31,390 --> 00:00:37,680
If you go to that view and the view, if you want to display that with addiction, with that idea,

12
00:00:37,680 --> 00:00:38,580
you can defining it.

13
00:00:38,580 --> 00:00:38,850
Right.

14
00:00:39,420 --> 00:00:42,250
But I show you again, I just simply remove it.

15
00:00:42,870 --> 00:00:48,540
So now in our index, so that our index function into the index function area, I define addiction.

16
00:00:49,470 --> 00:00:49,810
Right.

17
00:00:49,860 --> 00:00:57,060
So with this addiction, if you want to pass out the data like here, I define the name as a sample

18
00:00:58,890 --> 00:01:00,690
example, underscore test.

19
00:01:01,920 --> 00:01:04,380
OK, just simply the sample and context.

20
00:01:04,740 --> 00:01:10,130
And now here I want to do and define some of the text names, like I just simply differ on the text

21
00:01:10,130 --> 00:01:15,160
name that I am a sample text.

22
00:01:15,600 --> 00:01:16,030
OK.

23
00:01:16,080 --> 00:01:18,800
So this type of the text I want to define.

24
00:01:19,200 --> 00:01:24,540
So here I have already dictionary in our index page that this index has Tamalpais.

25
00:01:24,540 --> 00:01:26,850
I just simply pass it with this context.

26
00:01:27,120 --> 00:01:30,600
So now if you want to display this idea, then what exactly you have to do?

27
00:01:30,990 --> 00:01:36,220
You have to simply display with this simple text that is our first step index indexes.

28
00:01:36,260 --> 00:01:40,880
Jamul go to our template Fastweb and the index ASTM.

29
00:01:40,890 --> 00:01:41,230
All right.

30
00:01:41,610 --> 00:01:47,790
So here, if you want to display it, like in particular H1 tag here on the display, so do the double

31
00:01:47,790 --> 00:01:51,630
click bracket and then you have to simply define your simple text.

32
00:01:51,840 --> 00:01:53,790
So now if you click on and save all.

33
00:01:55,820 --> 00:01:57,370
I've had to file to check it.

34
00:01:58,490 --> 00:02:05,660
Everything is OK now, I just refresh it now, because he is not showing our decided takes as I am a

35
00:02:05,660 --> 00:02:06,510
simple text.

36
00:02:06,770 --> 00:02:12,980
So now if you want to manipulate this text, if you want to formatted this text, then you can also

37
00:02:12,980 --> 00:02:16,020
defining it with one of the building template filters.

38
00:02:16,040 --> 00:02:20,260
OK, so with this template filter, you can manipulate it so you can do that work.

39
00:02:20,300 --> 00:02:23,180
I will show you for doing this like that is actually our key.

40
00:02:23,180 --> 00:02:23,550
Right.

41
00:02:23,570 --> 00:02:26,600
So I have defined this key as a simple text.

42
00:02:26,900 --> 00:02:33,740
So here from our view, from this position, I just simply pass out this text that in this video as

43
00:02:33,740 --> 00:02:34,750
a simple text.

44
00:02:35,120 --> 00:02:36,840
So here I just simply defending it.

45
00:02:37,190 --> 00:02:39,050
So now I want to do on to formatting it.

46
00:02:39,060 --> 00:02:44,840
So if you want to formatted with the filter, with the template filter so that it looks good by default.

47
00:02:45,200 --> 00:02:50,030
So if you want to use it, then you have to do we have to define good after this, after this idea you

48
00:02:50,030 --> 00:02:51,440
have to define the pipe.

49
00:02:51,440 --> 00:02:52,610
That means a pipeline.

50
00:02:52,850 --> 00:02:57,360
And after the pipeline, like a here I define under the filter key as a prop..

51
00:02:58,220 --> 00:03:01,370
OK, I just simply defined on the filter key as upper.

52
00:03:01,730 --> 00:03:09,320
So now if you click, as I say, Val, and now if you refresh it now you can see is automatically become

53
00:03:09,320 --> 00:03:12,340
changed and every letter is now become uppercase.

54
00:03:12,740 --> 00:03:18,760
And also, if you want to use another template filter as a law, then you can also defining it anywhere

55
00:03:18,770 --> 00:03:19,340
you have to do.

56
00:03:19,360 --> 00:03:21,610
You have to define make that things as a law.

57
00:03:22,610 --> 00:03:24,500
OK, this is a law.

58
00:03:25,620 --> 00:03:34,110
Savol, refresh it, analogously, every text is now become law cases, and also they have the filter,

59
00:03:34,110 --> 00:03:35,750
which is actually ad sound.

60
00:03:35,780 --> 00:03:41,010
The argument like I show you like here after this, like here after this.

61
00:03:41,010 --> 00:03:43,710
They have also not the filter of the ad.

62
00:03:44,220 --> 00:03:49,150
So after this year, if you want to define some of the argument like here, I define the argument as

63
00:03:49,150 --> 00:03:55,920
the eight, OK, so automatically it will be at our deficit with our this text like here.

64
00:03:55,920 --> 00:04:01,410
If you go to our view here, there are key to this kid here right now.

65
00:04:01,410 --> 00:04:05,570
I want to try to define some of the aid value, OK, or the envelope.

66
00:04:06,150 --> 00:04:11,580
So here I define the ten below automatically this filter will be at our distend value.

67
00:04:11,820 --> 00:04:16,110
OK, so it will be at the ten and then plus our eight.

68
00:04:16,410 --> 00:04:20,970
That means it will be at our extirpate with our simple text ID.

69
00:04:21,190 --> 00:04:26,610
OK, now I'll show you like if you look at the Savol and now if you refresh it.

70
00:04:28,340 --> 00:04:35,330
Now concedes the swing of the 18, that means he's actually added our this, so here from here, I pass

71
00:04:35,630 --> 00:04:41,910
the room into the tent and after he leaves and after the turn of the eight automatically leaves, no

72
00:04:41,910 --> 00:04:43,610
showing as 18.

73
00:04:44,000 --> 00:04:44,500
Perfect.

74
00:04:44,840 --> 00:04:46,580
I hope you can all understand about it.

75
00:04:46,820 --> 00:04:50,000
And also here you can use that multiple filters.

76
00:04:50,000 --> 00:04:54,230
So they have a lot of the things into the Django documentation's pretty much basic things.

77
00:04:54,260 --> 00:04:58,330
So right now here, I want to do a lot of different things that go into the text.

78
00:04:58,440 --> 00:04:59,660
OK, that is actually the text.

79
00:04:59,900 --> 00:05:07,070
And I want to do want to added another filter like here that have all sun filter is a gap fast that

80
00:05:07,160 --> 00:05:07,840
the cab.

81
00:05:08,780 --> 00:05:13,830
I just simply the fast OK with this gap first you can actually capitalize your first letter click and

82
00:05:13,850 --> 00:05:14,690
save all.

83
00:05:15,760 --> 00:05:20,920
And now refresh it and now here you can see our first letter will be at the capital.

84
00:05:20,980 --> 00:05:28,330
OK, so here if you put as a like here, I want to do want to make the terms of this more letter as

85
00:05:28,330 --> 00:05:30,790
I can because I save all.

86
00:05:31,510 --> 00:05:35,100
But here in our feature area, I define that as a ghaffar.

87
00:05:35,110 --> 00:05:38,940
That means it shall be as fast as a capital letter refresh.

88
00:05:39,370 --> 00:05:42,990
Now you can see our facilities become a capital offense.

89
00:05:43,030 --> 00:05:48,520
And also they have that another filter as a card like here form to this or text front.

90
00:05:48,560 --> 00:05:55,830
This text, if you want to remove all that, if you all want to remove all that E like right now and

91
00:05:55,900 --> 00:05:57,280
then to remove our M.

92
00:05:57,490 --> 00:05:59,290
OK, so here I want to remove him.

93
00:05:59,470 --> 00:06:02,110
So if you can remove it then you can also do it.

94
00:06:02,120 --> 00:06:06,330
They have all some of the filter as it got so into this kataria.

95
00:06:06,370 --> 00:06:07,390
You have to define that.

96
00:06:07,390 --> 00:06:08,290
Your argument.

97
00:06:08,290 --> 00:06:10,610
I don't want to remove that m OK.

98
00:06:10,680 --> 00:06:17,350
That means the M letter will be automatically removed like here I just click the save all and now if

99
00:06:17,350 --> 00:06:21,540
you refresh it now, the aim is totally gone from here.

100
00:06:22,150 --> 00:06:23,880
I hope people will understand about it.

101
00:06:23,890 --> 00:06:25,690
So they has that next with our card.

102
00:06:25,840 --> 00:06:27,010
That is our card filter.

103
00:06:27,010 --> 00:06:28,880
With this you can pass that argument.

104
00:06:29,200 --> 00:06:34,660
So that is our argument, as if M so M will be card from our main keyboard.

105
00:06:34,690 --> 00:06:36,270
OK, that means what it is.

106
00:06:36,400 --> 00:06:40,720
And also if you want to display that date from it, then you can also defining it.

107
00:06:40,720 --> 00:06:45,070
But here you cannot actually define the date directly to the text.

108
00:06:45,460 --> 00:06:48,810
So here you have to do we have to get these things from your database.

109
00:06:49,180 --> 00:06:55,180
So if you go to our database, into the database, I have already answered some of the data in our that

110
00:06:55,180 --> 00:06:57,250
is our musician into the musician.

111
00:06:58,030 --> 00:07:01,890
They have sort of all the data like that is our musician.

112
00:07:01,900 --> 00:07:03,640
And here you can see that with a jackhammer.

113
00:07:04,060 --> 00:07:10,900
So now if you open it so that it acts with our musician, so into the musicians, they have no date

114
00:07:10,900 --> 00:07:13,750
from it, maybe into the album.

115
00:07:13,750 --> 00:07:15,510
I have defined some of the dead from it.

116
00:07:16,300 --> 00:07:16,570
Yeah.

117
00:07:16,600 --> 00:07:19,570
And obviously I have defined some of the department as a release date.

118
00:07:19,960 --> 00:07:24,120
So that is actually the date from its announcement to get this date from me.

119
00:07:24,160 --> 00:07:26,560
So that is the idea as a one idea.

120
00:07:26,560 --> 00:07:26,860
Right.

121
00:07:27,220 --> 00:07:29,690
So now to do and to define that as a one idea.

122
00:07:29,920 --> 00:07:35,590
So first of all, we have to get it on here so that no, I just simply remove everything.

123
00:07:35,890 --> 00:07:40,330
And first of all, here we have to define our database class name as an album.

124
00:07:40,810 --> 00:07:41,230
Right.

125
00:07:41,570 --> 00:07:44,290
Since the album, I want to take that objects.

126
00:07:45,340 --> 00:07:48,460
So I just simply defined as objects and get objects.

127
00:07:48,460 --> 00:07:49,030
Which one?

128
00:07:49,030 --> 00:07:53,710
I want to take our picture with our one sided data.

129
00:07:53,740 --> 00:07:57,700
So right now they have the our digital name as a one.

130
00:07:57,730 --> 00:08:03,940
That means that I wanted data so to do and define our picture as a one that means or this one I.

131
00:08:04,120 --> 00:08:07,080
So I just simply defined this one idea on here.

132
00:08:07,330 --> 00:08:10,780
So now I to do on display our this fake filename.

133
00:08:10,790 --> 00:08:15,730
So in our album into the album here, I have defined our filename as a release date.

134
00:08:17,080 --> 00:08:22,630
Like if you go to our models into the model here, you said you find that our filename as a release

135
00:08:22,630 --> 00:08:22,860
date.

136
00:08:22,870 --> 00:08:23,190
Right.

137
00:08:23,200 --> 00:08:25,030
So that is actually our database filename.

138
00:08:25,510 --> 00:08:29,380
So now in our index here, I want to display this after this text.

139
00:08:30,130 --> 00:08:35,320
I guess after this year, I want to do and define our Lesedi listed as a release date.

140
00:08:35,710 --> 00:08:37,840
So now if you click as I all.

141
00:08:38,930 --> 00:08:47,390
And now, if you refresh it, yeah, now not showing our distiller's dead as a may that the 28 are the

142
00:08:47,390 --> 00:08:48,430
two zero two zero.

143
00:08:48,890 --> 00:08:54,200
So now here, if you want to change that date from 81 to displayed with the using the filter, then

144
00:08:54,200 --> 00:08:55,430
you can also defining it.

145
00:08:55,460 --> 00:08:56,750
That is after this.

146
00:08:57,170 --> 00:09:01,760
After this, you have to define the pipeline and then also to have the filter to date.

147
00:09:02,210 --> 00:09:05,730
So into the date here you have also some restriction.

148
00:09:05,750 --> 00:09:10,640
So first of all, if you want to show that our all the date, then you have to define that with the

149
00:09:10,640 --> 00:09:11,960
capital, the OK.

150
00:09:12,230 --> 00:09:15,360
And after that, I just simply defined the a comma is not important.

151
00:09:15,410 --> 00:09:20,330
So that means after that date, as a Saturday or the Sunday, it should be displayed that date name

152
00:09:20,540 --> 00:09:22,430
and then should be added that comma.

153
00:09:22,430 --> 00:09:31,100
And then I want to do want to define our date and then it spares demand the capital and that year define

154
00:09:31,230 --> 00:09:31,660
the year.

155
00:09:31,820 --> 00:09:34,100
OK, so that is actually the format.

156
00:09:34,110 --> 00:09:37,820
So that is what the general format here I define for this hour filter.

157
00:09:37,850 --> 00:09:40,600
So now let's check this out if you're not clear to save all.

158
00:09:41,300 --> 00:09:47,000
So now I just simply say, well, not to change that format because the refresh yeah, you can see it

159
00:09:47,030 --> 00:09:51,140
now, first of all, is showing as a Thursday and after that Thursday, that is actually the comma.

160
00:09:51,140 --> 00:09:53,310
So that is the comma I have used on here.

161
00:09:53,360 --> 00:09:55,910
OK, so that is actually a comma.

162
00:09:55,910 --> 00:10:01,330
And then our date is visible as a 28, then the month and then that year.

163
00:10:01,550 --> 00:10:05,700
So far the results here are defined as a date and that month and then that year.

164
00:10:05,870 --> 00:10:09,350
So here I'm using all the default that Django filter.

165
00:10:09,350 --> 00:10:09,690
Right.

166
00:10:09,710 --> 00:10:11,120
That was the Django, that filter.

167
00:10:11,130 --> 00:10:16,080
So some of the time you may need some of the different filter for your specific, your project.

168
00:10:16,460 --> 00:10:21,590
So if you want to create some of the custom filter, how you can create that custom filter in your next

169
00:10:21,590 --> 00:10:24,160
video, I will show you that things with the live example.

170
00:10:24,680 --> 00:10:27,950
So thanks for watching and I will see you in the next video.
