Django Custom Template Tages: Inclusion Tags
- by Harry
Hello world!
Im trieng to build my own template tags
Im have no idea why I get the errors I get, im following the django doc's.
this is my file structure of my app:
pollquiz/
__init__.py
show_pollquiz.html
showpollquiz.py
This is showpollquiz.py:
from django import template
from pollquiz.models import PollQuiz, Choice
register =…