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

php - How to pass multiple values from url -

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

database - php search bar when I press submit with nothing in the search bar it shows all the data -