Détail des coûts des services afin de permettre la pratique du prix libre.

Scara dfcc509ce2 Ajout de la documentation de contribution à la doc 9 years ago
costs 664a5739f2 Apply doc filtering in admin to costs & goods 9 years ago
docs dfcc509ce2 Ajout de la documentation de contribution à la doc 9 years ago
requirements d046ac4bcd Add docs requirements 9 years ago
transparency 6959146a0f Add more values to Service.get_prices() 9 years ago
.gitignore 66474ac248 Use virtualenv instead of virtualenvwrapper 9 years ago
README.md 66474ac248 Use virtualenv instead of virtualenvwrapper 9 years ago
manage.py 8886470a44 Initial commit 9 years ago

README.md

Transparency: detail costs for libre price

It's still alpha-pre-ugly-looking and some strings are mentioning FAImaison, more usable version may be integrated to coin.

Run it

First time

sudo apt install python3-virtualenv

virtualenv -p $(which python3) venv

source venv/bin/activate
pip install -r requirements/base.txt

Generate a secret key:

echo SECRET_KEY=`python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print(repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))])))"` > transparency/local_settings.py

Create database:

./manage migrate

Run dev server

./manage.py runserver

Later

source venv/bin/activate
./manage.py runserver

Use it

Building documentation

Make sure to be inside the virtualenv (source venv/bin/activate).

Doc is using mkdocs, located in docs/ ; you can build it yourself.

Install doc dependencies :

pip install -r requirements/doc.txt

You can then build and serve it localy :

cd docs
mkdocs serve