Questions tagged [django-voting]

26 questions
0
votes
1 answer

Django limit voting to once a day

I've recently started learning Django so it's still a bit confusing for me. I'll be really happy if someone can guide me to a link or tutorial or help me to figure out the following. -Allow user to only vote once a day This is from my…
Lim Damien
  • 11
  • 3
0
votes
1 answer

django extending an app to allow non authenticated votes

I have been testing a few django voting apps and found qhonuskan-votes. I have managed to install it and is works great. However, I also want it allow voting rights to non authenticated users which I am not able to do. Need help with this…
0
votes
1 answer

Django: Invalid block tag: 'score_for_object', expected 'empty' o 'endfor'

im trying new to django, im using django 1.6. I am trying to use django-voting as explained in the tutorial: http://www.justinlilly.com/python/django_voting.html i get a error message when i request my template: Invalid block tag:…
palafox_e
  • 85
  • 1
  • 8
0
votes
1 answer

How should I resolve this slow voting query in mysql-slow.log?

I'm currently using django-voting in my website. But it turns out, when number of voting.Vote.objects.counts() comes to 10, 000, this query is slow (1.03 seconds) and appears in mysql-slow.log # Query_time: 1.031839 Lock_time: 0.000069 Rows_sent:…
Feng Li
  • 105
  • 1
  • 8
0
votes
1 answer

Django - How to retrieve an object from a custom template tag?

I'm without clues on solving this problem. I've a template tag that receives an Object: {% score_for_object OBJECT_HERE as score2 %} The problem is that I'm passing to the template a context that came from a raw select: cursor =…
André
  • 24,706
  • 43
  • 121
  • 178
0
votes
1 answer

Finding posts in certain categories which you haven't voted on (django-voting, django-categories)

I have an app where Posts are split into various categories using the django-categories app, using hard-linking (ForeignKey to categories.Category). I am also using the django-voting app to allow users to vote_up or vote_down certain posts. Now I…
Fahad Yousuf
  • 181
  • 1
  • 10
0
votes
1 answer

Hacker News algorithm for django-voting sort order

I'm working on an application using django-voting and have the sort order of the homepage items working using Eric Florenzano's custom VoteAwareManager technique: models.py class VoteAwareManager(models.Manager): """ Get top votes. hot =…
sgriffee
  • 381
  • 5
  • 18
0
votes
1 answer

Django-voting -- using two views for one webpage

I have a page called view_requests.html. One one tab on the page, I'd like to have basically a list of objects reddit style that people can upvote. I accomplished this using django-voting. However, on a second tab, I would like the ability to add a…
user1328021
  • 9,110
  • 14
  • 47
  • 78
0
votes
3 answers

After POST, weird redirect to iana.org follows

I'm using django-voting: https://github.com/brosner/django-voting/tree/master/voting And after my post, I'm redirected here: http://www.iana.org/domains/example/#c40
{%…
Modelesq
  • 5,192
  • 20
  • 61
  • 88
0
votes
1 answer

Why do the django-voting template tags not work?

I've installed the Django-voting app found here, but I am unable to get the template tags to work. For example, from what I've read, simply running {% load voting_tags %} {% score_for_object object_name as score %} should work, but it errors with…
Paragon
  • 2,692
  • 3
  • 20
  • 27
-1
votes
1 answer

Django,Jquery,Ajax; refreshing div for voting system not working?

I have a working django voting system using up and down keypresses on entries in a database. I need to have the {{ entry.score }} refresh on the page without a reload, as there will be other entries on the page. The {{ entry.text }} can refresh but…
1
2