python - Django template hyperlink don't showing up -
python - Django template hyperlink don't showing up -
i trying create hyperlink in template. here how:
<a {% url 'favourited' tweet.id%}>{{tweet.favourite.count }}</a>
howerver, renders {{tweet.favourite.count }}
part.
intrestingly, without hyperlink {% url 'favourited' tweet.id%}
returns right link: favourited/1
so problem?
are meaning do:
<a href="{% url 'favourited' tweet.id%}">{{tweet.favourite.count}} </a>
python django
Comments
Post a Comment