skip to navigation
skip to content

django-vote 1.1.2

A simple Django app to conduct vote.

Vote is a simple Django app to conduct vote for each model

Quick start

  1. Install django-vote by pip:

    pip install django-vote
  2. Add 'vote' to your INSTALLED_APPS setting like this:

  3. Run python syncdb to create the vote models.

  4. Declare vote field to the model you want to vote:

    from vote.managers import VotableManager
    class ArticleReview(models.Model):
        votes = VotableManager()
  5. Use vote API:

    >>> review = ArticleReview.objects.get(pk=1)
    >>> review.votes.up(user)
    >>> review.votes.down(user)



Adds a new vote to the object


Removes vote to the object


Check if the user already voted the object


return all instances voted by user


Returns the number of votes for the object


Returns a list of users who voted and their voting date

File Type Py Version Uploaded on Size
django-vote-1.1.2.tar.gz (md5) Source 2015-12-11 181KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 0 downloads in the last week
  • 300 downloads in the last month