Skip to content
Luis Felipe Álvarez Burgos edited this page Nov 28, 2013 · 8 revisions

VotaInteligente depends on 3 parts candideit.org, popit and write-it. You might choose to use all of them or just part. In the following document it is described how to install.

Assumptions

This guide was made using an ubuntu 13.10 just installed.

Requirements

Before the installation process is started a number of requirements is needed

Installation process

  • Clone votainteligente somewhere in your system.

git clone https://github.com/ciudadanointeligente/votainteligente-portal-electoral.git

Enter the installation directory

cd votainteligente-portal-electoral

  • Create a virtual environment

mkvirtualenv votainteligente

Here you can optionally give the command the full path to the installation directory by adding -a <full_path>.

  • If you didn't use the -a option you'll have to cd into the directory.

cd votainteligente-portal-electoral

  • Install the requirements that votainteligente needs in the current virtualenvironment

pip install -r requirements.txt

It might take some time to get all installed

  • Create the database and tables.

python manage.py syncdb

Update the tables with migrations

python manage.py migrate

Bringing elections from candideit.org

Elections in VotaInteligente have a one-to-one relation with elections in candideit.org, so for your installation you'll first need to create an election in candideit.org and follow the next steps.

Specifically for this installation we are not using popit (But we'll soon be doing so).

  • Create the file votainteligente/local_settings.py with the following content.
USE_POPIT = False

CANDIDEITORG_URL = http://candideit.org/api/v2/'

CANDIDEITORG_USERNAME = 'YOUR-CANDIDEITORG-USERNAME'

CANDIDEITORG_API_KEY = 'YOUR-CANDIDEITORG-APIKEY'

  • Getting your elections from candideit.org into your installation.

You need to run the following command

python manage.py update_from_candidator

  • Running VotaInteligente

python manage.py runserver

And hit http://localhost:8000/.