Candideit.org is a simple application that aims to provide comparable information about the positions of candidates to any election.
The living application can be found at www.candideit.org
-
In ubuntu is as easy as ``` sudo apt-get install virtualenvwrapper ```
If you are using ubuntu 12.04 you can follow this guide.
Create a python virtualenvironment
mkvirtualenv candideit
Clone the project from our repo
git clone git@github.com:ciudadanointeligente/candidator.git candidator
Enter the directory
cd candidator
If you are going to be developing candideit you should move to the dev branch
git checkout dev
Install dependencies.
pip install -r requirements.txt
Run tests
python manage test elections
It runs all tests in the elections application
Sync database
python manage syncdb
We are using sqlite3 to store all the data but if you would like to use another database you are free to do so, and it can be changed in 'settings.py'.
Run the application
python manage runserver
It is due to PIL not installed with JPEG support you can follow this guide.
-
To run all tests
python manage test elections -
To check code coverage
python manage.py test_coverage elections