Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.72 KB

README.md

File metadata and controls

56 lines (35 loc) · 1.72 KB

Introduction

European part vote related code and models extracted from memopol code base.

Votes data of the European Parliament importation (from parltrack) and models extracted from memopol code base.

This contains the models needed to work with Votes, the script to import if from parltrack and also the script to match between MEPs and votes data.

Dependancies

You'll need django-parltrack-votes-data and django-parltrack-meps

Installation for dev

For dev, this will look something like this:

virtualenv ve
source ve/bin/activate

git clone [email protected]:Psycojoker/django-parltrack-votes.git
git clone [email protected]:Psycojoker/django-parltrack-meps.git

pip install django
pip install -r django-parltrack-votes-data/requirements.txt

django-admin.py startproject testing
cd testing

ln -s ../django-parltrack-meps/parltrack\_meps .
ln -s ../django-parltrack-votes/parltrack\_votes .

vi testing/settings.py # here, set the database
# and add 'parltrack_votes' 'parltrack_meps'
# to the list of installed apps

python manage.py syncdb

python manage.py update_meps
python manage.py import_ep_votes_data

Usage

Run:

python manage.py link_a_proposal_part_votes_to_meps <votes_data id>

To try to link the votes of a proposal part to their respectives meps. WARNING: high chance of failing if the vote is old.

Licence

Like memopol: aGPLv3+