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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -