Skip to content
How to write Django Custom Template Tags and Filters
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core
django_templatetags
.gitignore
README.md
manage.py
requirements.txt

README.md

How to write Django Custom Template Tags and Filters

Tutorial Link - https://studygyaan.com/django/how-to-write-django-custom-template-tags-and-filters

In this tutorial, you will learn how to write your own Django Custom Template Tags and Filters. There are lots of built-in template tags and filters in Django. But sometimes these tags are of no use or we need more functionality to do. For such a situation we create our own tags and filters.

Setup

  1. Create a folder and put all the files inside it.
  2. Create a virtual environtment - virtualenv env
  3. Activate VirtualENV - source env/bin/activate
  4. Run requirements.txt - pip3 install -r requirements.txt
  5. Run the Application - python3 manage.py runserver
  6. Go to - http://localhost:8000/
You can’t perform that action at this time.