DevelopmentNotes - fnunnari/deeva GitHub Wiki

DeEvA Development Notes

Notes and docs about the develpment of the DeEvA platform.

Voting Platform

The Voting Platform is a web-based interface to collect votes from users. It uses the DJango framework.

UML diagram

A picture of the UML class diagram for the Voting platform:

Voting Platform Class Diagram

Or you can get the Voting Platform Class Diagram PDF version.

Generate UML graphs

How to create Entity-Relation Diagrams (ERD) from existing Django models. (Taken from https://stackoverflow.com/questions/6776592/django-model-graphic-representation-erd)

Install the django extensions:

pip install django-extensions

and graphviz:

pip install pygraphviz

Update the configuration deeva/settings.py:

INSTALLED_APPS = (
    ...
    'django_extensions',
)

Now run:

python manage.py graph_models experiments questions news | dot -Tpdf > ../Docs/VotingPlatform-ERD.pdf

A script for this has been already prepared in the VotingPlatform/Scripts diretory.

cd VotingPlatform
sh Scripts/updateClassDiagram.sh

The diagrams are generated in the VotingPlatform/Docs folder.