Skip to main content

A simple Django app to conduct vote.

Project description

=====
Vote
=====

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


Quick start
-----------

1. Add ``"vote"`` to your ``INSTALLED_APPS`` setting like this::

INSTALLED_APPS = (
...
'vote',
)

2. Include the polls URLconf in your project urls.py like this::

2. Run `python manage.py syncdb` to create the vote models.


3. Declare vote filed to the model you want to vote::

from vote.manager import VotableManager

class ArticleReview(models.Model):
...
votes = VotableManger()

4. Use vote API::

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-vote-1.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-vote-1.0.tar.gz.

File metadata

  • Download URL: django-vote-1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-vote-1.0.tar.gz
Algorithm Hash digest
SHA256 d7e2039aba3491cad56fff568d411f0a1991cb9b3a7fb996a50cf083c8d5c035
MD5 88bca807291c6d48fd209288bc89a4c6
BLAKE2b-256 ebf73c28f2820edc4ff533c0c2a900bd964f12694b02f202671013b44da938ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page