Django - Python - How to use global templatetags for all my applications in one project

Let's say that I have:

proj1/app1
proj1/app1/templatetags/my_shared_tags.py
proj1/app2
proj1/templates
proj1/templates/app1/index.html
proj1/templates/app2/index.html

      

Now how can I reuse the tag from my_shared_tag.py

from app1 in my app2.

+1


a source to share


1 answer


Have you tried this?



I'm pretty sure you can use all template tags in all templates out of the box with django :)

+1


a source







All Articles