xxxxxxxxxx
<!--To enable django values inside django tags, the following can be used: -->
<!-- path("/<str:code>",views.codes,name="code_name") in 'section' app,;
code1=required code -->
<a href="{% url 'section:code_name' code=code1 %}" ></a>
<!-- note that for code, {{code1}} should not be written as for django values to
work inside django tags, no extra {} are allowed-->
xxxxxxxxxx
from django import template
register = template.Library()
#simle Tag
@register.simple_tag
def fun_name(data):
return data