Skip to content
Extraits de code Groupes Projets
Avatar de jpic
Jamesie Pic rédigé
This is completely backward-incompatible and was rushed before the
release - nobody was going to pay the interrest on the technical debt
this commit remove to support migrations since nobody has an instance in
production.

Memopol{Representative,Vote,Dossier} subclasses are gone. Django model
inheritance is fun but comes at a price - hacks like
create_child_instance_from_parent would end up everywhere. Use a simple
one to one relation when you don't intend to have several subclasses of
a model which is the case here.

Country and current mandates are not pre-calculated and stored in the
database anymore, instead they are pre-fetched which requires
django-representatives>=0.0.7

Score related code was rewritten in votes.models, along with the
Recommendation model. We're still not calculating it on the fly here
because that would require some SQL backflips which will take a bit of
time to do properly.
e1e714be
Historique

Build Status codecov.io

git clone git@github.com:political-memory/political_memory.git

cd political_memory

# Create a throwable virtualenv
virtualenv ve
source ve/bin/activate

# Install python requirements
pip install -r requirements.txt

# Create the local db
python manage.py migrate

# Install browser libs
bin/install_client_deps.sh

# In another terminal (don't forget to activate the venv)
./manage.py runserver