Hello, friend, welcome back.
In a previous video, we successfully insert our blog post, so that is our title, the blog titled
Blog Content and the blog Kimmet.
So now I want to do want the visibility in our homes into the home media.
Obviously, I have already displayed the title and published it.
Right now I want to visible that contain and the images.
So here we successfully insert all the data in our database.
Right now we read these data and visibility.
Right.
So that is in our blog, MySpace.
So now, first of all, go to our blog list.
So there is our blog is not a stable template.
So here I don't want to design it.
So previously I have designed that our blog title and I published it.
So now, first of all, I take one of the bootstrap, one of the class, I take one of the Dave and
I just put that class as a rule to step into the role area.
They have the 12 column.
So now I have to do and actually segment it so better.
I want to take another Dave and I just put that as a column called s.M.
That means that I want to segment with the four column and then there is our eight column.
OK, so just copy it.
And now I have to take another column.
Our call this column will be as the eight.
That means in total it will be as a 12 column.
So in order for column area here, I want to download our e-mail system to load that image.
First of all, we have to add our image tag and then in our SAAC to associates will be as a media right
into the media.
And then here I have already loaded our for loop and I want it displayed with our D block.
So with this blog, I want to display our filename for if you go to a model, it is the model or filename
as a blog image.
So now I want to do all the visibility.
That will be our blog image and also here, if I want to add all the tag.
So that will be our blog title.
But I want to do want to add that our blog title and also here, if you want to add the title, you
can add it.
I'm named as a sorry title and title will be our symbol.
Our blog title, Blockheaded will be our title.
I added it and now if you click as save all and now if you go and homepage, refresh it.
Yes, you can see our all that blog image is visible.
So now I to the on the some of the limitation here on the board that as a result the wide better.
After this, after this I want to put another wide and wide.
I want to make that as a hundred percent.
That means shall we get our total lesson for I make it as a hundred percent wide click and save all
and now refresh it.
Yeah.
Because it's perfect.
So that is a clever call for so long in particular called Atria on display.
Our description.
That means here that is our call it so here I want to do on the display our call and our description.
So I put on the PAETEC and then which will be just like the same because right now we are already into
the for loop.
So the the follow up on the visible lead with our blog.
So with this blog, want to display our filename.
So for the blog content, that is our blog content that I want to do and to add our blog content.
So now if you click on this Savol and now if you refresh it, yes.
You can see so perfectly getting all that our blog content.
But here you can see they have no break.
There is no line break in particular.
That area so new are from here we actually copy.
So they have some of these spaces, but in our site it consists of probably one paragraph.
So if you want to make that as a line break, they have also one of the filter in Django that is a building
filter as a line breaks.
So I want to do and apply it.
That means here after that, I want to try to use all the filter if you want to use it with the pipeline,
they have the line breaks, line break, OK, line break.
So that is one of the filter command if you use it to save all.
And now if you refresh it, yes.
You can see it's now appropriate.
So whatever the things will copy from here.
So everything is now just like that.
Right.
So it's not perfectly visible.
And also after that that means here I want to do all the visible our autonomy name.
So whatever you want.
Right now, all the data in our database, I have already discussed about the things we do.
Right.
So we have already checked it in our database.
Everything is on here.
So take as a six pack and then maybe to the posted by, posted by, posted by our auto name.
I put better one of the ahead if and here I want to do and the load.
It with our blog and with this blog, our auto name feel, if you go to our model, that will be our
auto right I copied and now here I posted it.
So now let's check this out.
If you click on this table and now if you refresh it, yes.
You can see showing as posted by the test.
So this blog is created by the test that the test user.
There is also created by the test user and that is also created by the test user.
Right.
So everything is perfect.
And that is our title.
And that is our published Did Better in the published.
Did I want to make that as a one of the italic order?
That means I take on the right track and here and do and put our published the picture published.
Did you get to save all then.
Should be a little.
We look at it.
Yeah.
You know italic order.
So here I don't want to actually display our total paragraph that the portable description here.
I want to put some of the limitation.
That means I want to pull some of the limitation for the character.
So if you want to add this step up on the limitation, then you have to do this work with using that
filter.
So we have to do we have to create another custom filter.
Right now, they have no building filter like that.
So we have to create all the custom filters in fundamental.
I have already discussed some of the things we do, how we can create that custom filter.
So right now we will do these things again.
OK, so for doing this, I want to do to create one of the custom filter for our block.
That means our block cinder block area.
If you want to create that on the custom filter, you have to do have to create the filter folder.
I name it as a template, OK.
It will be as a template stacks.
I created one of the folder as a template stacks and the template tax idea you have to do.
First of all, you have to create one of the unit file that that means the initialized file.
So here we have two added, I name it as a unit I and I t I need and then double on the line and then
dot file.
So here I created one of the file as a unit.
So here we don't need to do anything.
I just simply will make sure you get it.
And then I want to do on to create or fill that that is our custom filter file because a new file and
I just name it as a custom custom underscore filters, filters, dot five.
So this step up on the page I want to create.
So that will be our file as a custom filter.
So do the custom filter.
What exactly you have to do.
First of all, we have to do we have to import our template.
Right.
So from and then Django from the Django, you have to import our template and name it as a template.
And then also we have to do we have to register it in our library area.
So I make that as a register in fundamental.
I have already discussed about that things with do friends.
So I have to do I have to register our D template.
That means our D template in our lives.
That means into the jungle library here.
We have to register it.
So now I make it as a library, Lavie.
I make this library as a registered and then I want to do and to create the function and to create the
function.
I just name it as a range.
OK, range, underscore filter.
I name it as a filter and the filter area we have to do have to pass one of the parameters of value.
I name it as a value and then I want to do I want to return it, I want to return the value.
OK, this value and what this value area here will be passed to argument will be from what exactly it
will be stated and how many characters you said, OK, so I want to do all this started from the zero
and I want to make that as a six hundred character.
OK, that means from to the index it will be counting our six hundred character then this is the only
character and the visible.
OK, so I make that as a six that and after that if you want to make as a like coin it will be as a
finished then if you want to show some of the dot dot you can also display.
So I make it as a plus and plus.
I don't want to make some of the extreme value as a dot dot will be displayed three or four dot the
step up on the dot dot automatically should be added.
OK, and then I have to do I have to also register or filter to our this arrange filter here.
We have to register it now.
I just make that with the register, ok, with the register and then filter and this filter will be
our key.
Our key will be our function name as a branch.
That means a range filter.
And here also I have to do have to pass it.
So now we have to do we have to add it, we have to added in our block list pastry to the.
Our biggest area in our block content, I want to add this filter, right.
So, first of all, here we have to do we have to load it.
That means here I want to do I want to load our disgusting filter that is a load and load our cost or
filter filename as a custom filter.
Right.
That will be as a custom custom underscore filter filter.
So that is a file.
So that is our custom and then our filters to make sure spelling is correct.
So that is our custom filter.
Perfect.
So first of all, here you have to load your custom filter.
That means custom filter file.
I simply load it and then I want to do I want to add this filter that means into the custom filter area.
I have created our our function name as a wrench filter.
So now that is will be our custom built around one to pass it in our block container.
So here I pass it.
OK.
And then there is another default one as a line break.
So I added our custom filter on here.
So now let's check this out.
If you click on Save All, first of all, I want to check it.
So here, friend one things like when you actually created one of the custom filter, after that, you
have to run your server again when you run your server automatically to be created.
One of the bikers file on here, but I show you like a stream will be let me close it.
I also close it.
I don't need this.
I open all of the new terminal and now I run or sidebar with the pie and then Mannerist sorry.
And the man is by and then run server enter.
Now you can see it's not created on the gas so that the bikers folder automatically created because
the NRA is totally running.
So now if you go to our page and now if you click the refresh, yes, you can see friend is perfectly
getting our zero to 600 character.
And after that character, you can see there is a cloud dot, dot that trend.
So that is our custom filter is not perfectly working.
So better on want to make that as a 500 like 500 character and plus our dot dot clickers.
Save all and refresh it.
Yeah, you can see now 500 character and then our dot dot.
So we successfully display all that our posts right now, if you want to add new one I like here, I
want to do want to take another one better.
I copy it and this will be as our title and then some of the description I copied and pasted on here
and it puts on the block images.
So now I choose this one as a published.
Yeah.
You can see it's perfectly.
And so our last post in the fast so that the title there is images that are published time and that
is our description and posted by which user is also perfectly visible.
Right.
So now I want to do here I want to put on the link as I read more.
So when you click the read more than it should be elected to our post detail space, that means this
blog retail space and the blocked retail space area.
I also want to do want to add on of the comments section.
How can do that work?
In our next video, I will show that things with a live example.
So thanks for watching and I will see you in the next video.