I\'ve been trying to write a custom template tag to shorten links with bitly, I\'ve attached the code and error I\'ve been getting below. I\'ve tried to look into the docume
Instead of:
{{ data|filter }}
If you use:
{{ data | filter }} <!-- Note Spaces -->
The spaces on either side of the |
character will cause an exception during page render.
The error is on this line:
<p>{{ bitlyshort "http://www.google.com" }}</p>
Template tags use {% ... %}
(template filters use {{ ... }}
). Try:
<p>{% bitlyshort "http://www.google.com" %}</p>