As you know, Django has an extensive template system with features such as template inheritance, filters to change the representation of values, and tags for presentational logic. Moreover, Django allows you to add your own template filters and tags to your apps. Custom filters or tags should be located in a template-tag library file under the templatetags
Python package in your app. Then, your template-tag library can be loaded in any template with a {% load %}
template tag. In this chapter, we will create several useful filters and tags that will give more control to template editors.
To see the template tags of this chapter in action, create a virtual environment, extract the code provided for this chapter there, run the development server, and visit http://127.0.0.1:8000/en/
in a browser.