I am using django under Apache. When I use urlencode in django template, its not at all enoding some thing like this {{value|urlencode}} Here is my complete anchor tag
<a href="/mysite/comment/{{i.comment_id|urlencode}}">Comment</a>
Can some one help on this? Is there any way to get rid of this?
Thanks in advance – Vikram
The
urlencodefilter only encodes characters that are unsafe to have in a URL. If you want to encode all characters then you will need to write or find a different filter for that.