Skip to content

political-memory/django-parltrack-votes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com:Psycojoker/django-parltrack-votes.git
git clone git@github.com: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+

About

Code related to meps' votes from the European Parliament handling with the data of parltrack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages