This repository contains the applications developed by Correctiv.
Database for Spendengerichte story
-
Setup virtualenv for project
-
Install dependencies
pip install -r requirements.txt
-
Rename
correctiv_apps/local_settings.py.example
tocorrectiv_apps/local_settings.py
-
Sync database
python manage.py syncdb
-
Download the JSON file or the CSV file and load it into the database. CSV is much slower to load, but might be useful for other things.
python manage.py loaddata bussgelder.json
Or load the CSV file:
python manage.py bussgelder_import bussgelder.csv
The CSV loading can take quite some time as the loading code is not optimized (PR welcome).
-
Start ElasticSearch in another terminal and run
python manage.py bussgelder_index
-
Start runserver
python manage.py runserver