django-vote icon indicating copy to clipboard operation
django-vote copied to clipboard

How to use django-vote in templates ?

Open Damar225 opened this issue 5 years ago • 1 comments

The doc doesn't have explanation of how to use this package in templates! I will be very grateful if you give me example.... Thanks

Damar225 avatar Sep 17 '19 09:09 Damar225

im wondering about this question as-well.....

anto1032 avatar Mar 01 '21 21:03 anto1032

Any updates on this? I'm also having hard time figuring out how to use it in templates. Some description with examples might be super helpful. If I can't figure this out, then unfortunately it'll prevent me from using this solution and switch to something else.

apetryla avatar Dec 17 '22 07:12 apetryla

@apetryla you can use vote_count and vote_exists in template now, the README is also updated to add example code.

shellfly avatar Dec 17 '22 10:12 shellfly

@shellfly Thank You for the fast and clear update. Also looking at the tests helped.

Edit note: I've removed the old text, since I managed to solve the problem (it was on my side). Now it works like magic. ^^

apetryla avatar Dec 18 '22 10:12 apetryla