This is a generic voting application for Django projects
Install the
django-voting
distributionAdd
voting
to yourINSTALLED_APPS
:INSTALLED_APPS = [ … 'voting', … ]
Run
django-admin migrate
See "overview.txt" in the "docs/" directory.
The tests can be run with Django's test runner:
django-admin test tests
or with pytest:
pip install pytest-django py.test
A code coverage report can be collected directly with coverage
:
pip install coverage coverage run $(which django-admin) test tests coverage report coverage html
or with pytest:
pip install pytest-cov py.test --cov py.test --cov --cov-report=html