1
00:00:00,150 --> 00:00:00,900
Hello, friend.

2
00:00:00,930 --> 00:00:01,770
Welcome back.

3
00:00:01,770 --> 00:00:08,100
In this video, I will show you how you can create some of the custom filter for your project for doing

4
00:00:08,100 --> 00:00:08,330
this.

5
00:00:08,340 --> 00:00:14,370
First of all, we have to do we have to create one of the folder in our first application, in the first

6
00:00:14,370 --> 00:00:16,050
application here.

7
00:00:16,050 --> 00:00:17,730
And we want to create on the folder.

8
00:00:17,730 --> 00:00:20,360
And I just name it as a whatever he wants.

9
00:00:20,390 --> 00:00:22,650
Right now, I'm named as a template text.

10
00:00:25,260 --> 00:00:27,340
I just name it as a template text.

11
00:00:27,340 --> 00:00:33,090
So I just create this folder so you can select the folder into this folder area I want to do and to

12
00:00:33,090 --> 00:00:33,990
create to file.

13
00:00:33,990 --> 00:00:42,480
First of all, I want to create one of the file for our filter as a my underscore filters, OK, I just

14
00:00:42,480 --> 00:00:44,660
name it my underscore filters dot file.

15
00:00:45,480 --> 00:00:51,450
So that is my underscore filters, dot fi and also I want to create another init fight.

16
00:00:51,450 --> 00:00:53,670
You can see they have also by default one of the init file.

17
00:00:53,710 --> 00:00:55,380
So now I have to do one to create another.

18
00:00:55,380 --> 00:00:57,950
I need fi, you know what this project area.

19
00:00:57,960 --> 00:01:00,260
So that was in all this folder area.

20
00:01:00,780 --> 00:01:05,970
So here will be DoubleLine that I will underscore and then that in it.

21
00:01:06,730 --> 00:01:12,460
OK, and then also again that will underscore and then the file.

22
00:01:12,870 --> 00:01:14,390
So you have to create it.

23
00:01:14,400 --> 00:01:16,800
So to simply create that things on here.

24
00:01:17,220 --> 00:01:19,140
So now here we do need this here.

25
00:01:19,140 --> 00:01:23,520
I only want to create and then ignore my filter area.

26
00:01:23,520 --> 00:01:25,460
That is my filter by area.

27
00:01:25,950 --> 00:01:27,660
So right now we don't need these pages.

28
00:01:27,660 --> 00:01:29,740
HTML also we don't need this.

29
00:01:29,790 --> 00:01:35,640
OK, so here first of all, I did want to import our building one of the template functions, so I want

30
00:01:35,640 --> 00:01:37,700
to do and defining it as a form.

31
00:01:38,610 --> 00:01:45,120
So here I defined the form and then Django then the import.

32
00:01:45,270 --> 00:01:53,100
I want to import the template, ok, I just import the template and then you have to write down at the

33
00:01:53,100 --> 00:02:02,070
register so that the register and then here you have to define with this template, OK, with this template

34
00:02:02,070 --> 00:02:05,550
you have to define that as your library means the template library.

35
00:02:06,520 --> 00:02:08,820
So just simply defined the template library.

36
00:02:09,030 --> 00:02:14,360
And after that I want to do for my filters, I want to create one of the function.

37
00:02:14,670 --> 00:02:17,130
So if you want to create that function, what exactly have to do?

38
00:02:17,130 --> 00:02:23,630
We have to define the Jeev and that I want to do and define the function name as a my filter, OK,

39
00:02:23,630 --> 00:02:27,420
I name it as my filter and here I define some of the value.

40
00:02:27,610 --> 00:02:30,190
OK, I take what the parameter as a value.

41
00:02:30,210 --> 00:02:33,780
So with this value you can actually return some of the value.

42
00:02:33,810 --> 00:02:43,290
Like I show you I the simply defined the return and then sorry return and the value of this value.

43
00:02:43,290 --> 00:02:45,690
I want to add some of that and that data.

44
00:02:45,720 --> 00:02:51,410
So first of all, let's be sure our D value into this value is, shall we add, with the other extreme

45
00:02:51,420 --> 00:02:51,830
data.

46
00:02:52,200 --> 00:03:03,300
So I just simply defined the listing data as like this is sorry, this is a start starting from a stone

47
00:03:03,300 --> 00:03:03,780
filter.

48
00:03:04,740 --> 00:03:10,890
OK, so this step up, one of the text I have to define and then also I define our all that like really

49
00:03:10,890 --> 00:03:11,820
in our register.

50
00:03:12,240 --> 00:03:12,590
Right.

51
00:03:12,720 --> 00:03:14,330
So into the register area.

52
00:03:14,490 --> 00:03:15,150
Sorry.

53
00:03:16,730 --> 00:03:24,040
So that is actually the register, so into this register area, you have to define your filter and into

54
00:03:24,050 --> 00:03:28,710
this filter you have to define your idea, what that means for this filter.

55
00:03:28,730 --> 00:03:29,510
I want to do this.

56
00:03:29,510 --> 00:03:33,970
If you want to display this filter to another area, then you have to defend the things with the sound,

57
00:03:33,980 --> 00:03:34,430
the idea.

58
00:03:34,440 --> 00:03:34,690
Right.

59
00:03:34,940 --> 00:03:37,720
So I just simply developed the idea as a custom.

60
00:03:38,870 --> 00:03:41,740
OK, I name it as a custom underscore filter.

61
00:03:42,830 --> 00:03:44,450
I name it as a custom filter.

62
00:03:44,450 --> 00:03:51,270
And then here I have defining what this value and that is with this function, I simply define our dysfunctionally.

63
00:03:52,080 --> 00:03:53,900
OK, I just simply define this function.

64
00:03:54,470 --> 00:03:57,560
So now here, what exactly you want to display.

65
00:03:57,770 --> 00:04:00,440
OK, so now you can display your this custom.

66
00:04:00,440 --> 00:04:06,400
They have some of the value you can displayed with this idea and also that reservoir, my filter.

67
00:04:06,410 --> 00:04:08,090
So here I have created this function.

68
00:04:08,540 --> 00:04:14,000
So now right now I want to go on to a fully displayed in our template index.

69
00:04:14,000 --> 00:04:14,890
That means here.

70
00:04:15,320 --> 00:04:22,730
So here I have defined already that our sample takes right into the view here in the View area I have

71
00:04:22,730 --> 00:04:26,820
defined that sample takes a bit to do and define some of the text on here.

72
00:04:27,250 --> 00:04:33,430
OK, I just simply defined some of the text as a sample sample text.

73
00:04:34,790 --> 00:04:41,570
So this step up one of the text I want to visible, OK, and then it shall be displayed the simple text

74
00:04:41,570 --> 00:04:42,140
on here.

75
00:04:42,170 --> 00:04:47,550
So first of all, if you want to display it, you have to do you have to load your this filter.

76
00:04:47,600 --> 00:04:50,030
OK, that means this function as my filter.

77
00:04:50,510 --> 00:04:51,590
You have to load it.

78
00:04:52,070 --> 00:04:58,570
So that is our base into the our fast step into the step area.

79
00:04:58,580 --> 00:05:00,860
I have defined this page as my filter.

80
00:05:00,920 --> 00:05:01,190
Right.

81
00:05:01,210 --> 00:05:02,710
So first of all, you have to load it.

82
00:05:03,170 --> 00:05:11,630
So after this extent, OK, after this extent here I want to do and to load this with double percentages

83
00:05:11,630 --> 00:05:18,270
and then I want to load unload our my underscore filter filters.

84
00:05:18,310 --> 00:05:23,030
OK, that means that with our filters I just simply defined the my and then filters.

85
00:05:23,360 --> 00:05:25,430
So now I just simply remove it here.

86
00:05:25,430 --> 00:05:28,140
I want to display our custom field.

87
00:05:28,760 --> 00:05:35,400
So right now if you save it so you have to save it fast and after that you have to run your server again.

88
00:05:35,420 --> 00:05:36,980
So just simply remove it.

89
00:05:37,700 --> 00:05:40,280
And when you run automatically, lives will be created.

90
00:05:40,280 --> 00:05:43,200
One of the items folder in particular, that area.

91
00:05:43,220 --> 00:05:47,680
OK, you can see it's already created on the folder like here.

92
00:05:47,690 --> 00:05:54,950
I just ran our server again as a python and that man is dot fi and the run server.

93
00:05:59,480 --> 00:06:01,520
So I just simply ignored Starbursts.

94
00:06:01,580 --> 00:06:11,210
Now, if you go and if you refresh it and now showing as a context must be destroyed and then said so

95
00:06:11,210 --> 00:06:13,300
maybe I did something wrong.

96
00:06:14,150 --> 00:06:21,050
So the sample takes in our view here that your sample text idea here, you can say just Defendor command,

97
00:06:21,050 --> 00:06:22,410
which will be as a clone.

98
00:06:22,820 --> 00:06:28,420
So there is a sample size to simply defend our sample text will be as a sample text into that index

99
00:06:28,430 --> 00:06:28,670
here.

100
00:06:28,670 --> 00:06:29,690
I have defining it.

101
00:06:29,690 --> 00:06:30,020
Right.

102
00:06:30,350 --> 00:06:31,550
So that is our sample text.

103
00:06:31,820 --> 00:06:33,080
So now let's check this out again.

104
00:06:33,080 --> 00:06:34,400
I just because I evil all.

105
00:06:35,760 --> 00:06:40,620
So they have some of the silly mistake I define as a comma shall be as a clone, right?

106
00:06:40,650 --> 00:06:43,770
So now I just simply define you can say is now running.

107
00:06:44,430 --> 00:06:45,230
Refresh it.

108
00:06:45,240 --> 00:06:45,600
Yeah.

109
00:06:45,740 --> 00:06:47,700
Nagasu snowshoeing as a sample text.

110
00:06:48,060 --> 00:06:53,900
OK, so now what do I want to add our custom idea that means custom filter I have created.

111
00:06:53,910 --> 00:06:59,660
So here I have created our custom filter as a custom filter idea that there are custom filter.

112
00:06:59,670 --> 00:07:02,750
I just simply copied no index.

113
00:07:03,060 --> 00:07:04,720
So after this I want to use it.

114
00:07:04,740 --> 00:07:06,570
So you have to use it with the pipeline.

115
00:07:06,570 --> 00:07:09,950
And then I define our custom filter name as a custom filter.

116
00:07:10,470 --> 00:07:13,980
So into the custom filter, I have defined our disvalue.

117
00:07:13,980 --> 00:07:14,310
Right?

118
00:07:14,640 --> 00:07:18,570
That means automatically, first of all, you will be display our value.

119
00:07:18,590 --> 00:07:21,590
That means our keyword that have defined the text.

120
00:07:21,930 --> 00:07:24,230
And after that it shall be added value.

121
00:07:24,570 --> 00:07:26,240
OK, so now let's check this out.

122
00:07:26,250 --> 00:07:28,220
If you nucleases save all.

123
00:07:29,340 --> 00:07:31,950
So now if you refresh it.

124
00:07:32,370 --> 00:07:36,090
Yes, no different now showing as a sample text.

125
00:07:36,300 --> 00:07:41,370
And after that here I have created all of the custom filter and we discussed on filter.

126
00:07:41,370 --> 00:07:42,870
I display some of the value.

127
00:07:43,260 --> 00:07:47,440
OK, so now we can successfully created one of the filters.

128
00:07:47,440 --> 00:07:50,400
So that is our custom filter template text area.

129
00:07:50,430 --> 00:07:52,770
So with this you can actually create it.

130
00:07:53,190 --> 00:07:55,420
So that is how that is a clever idea.

131
00:07:55,440 --> 00:07:59,550
This idea have parsed so that they are custom filter in index.

132
00:07:59,820 --> 00:08:02,220
After that I just simply define our filter name.

133
00:08:02,880 --> 00:08:03,270
Perfect.

134
00:08:03,290 --> 00:08:06,560
So now you can see after that is added our this filter name.

135
00:08:06,570 --> 00:08:09,180
So friend that's all actually the basic.

136
00:08:09,210 --> 00:08:11,580
So when will you use it in our pulisic then.

137
00:08:11,580 --> 00:08:14,810
It'll be much more clear to you in your next video.

138
00:08:14,820 --> 00:08:17,240
I'll start a new session is about that.

139
00:08:17,250 --> 00:08:20,820
How can the court application with using that MySQL.

140
00:08:21,240 --> 00:08:24,750
So as I told you before, so that is actually Django by default.

141
00:08:24,750 --> 00:08:28,670
All the admin panel that means by Django by default on the database.

142
00:08:28,680 --> 00:08:28,950
Right.

143
00:08:29,250 --> 00:08:34,800
So now I want to do to create one of the court applications that Misho can create data, how can read

144
00:08:34,800 --> 00:08:41,790
data, how can insert data and how can direct data and update data so that the court applications can

145
00:08:41,790 --> 00:08:44,760
create the good application with using that MySQL.

146
00:08:44,760 --> 00:08:48,020
In our next video, I will show you that things with a live example.

147
00:08:48,480 --> 00:08:50,040
So thanks for watching.

148
00:08:50,070 --> 00:08:51,780
I will see you in the next video.
