License | |
Documentation | |badge_documentation| |
Publication | |
Development | |
Community |
This app holds functionality to examine and compare scenario data from various sources (OEP, databus, CSVs).
Make sure django-template-partials is set up in project. See https://github.com/carltongibson/django-template-partials#installation for instructions.
Make sure X-CRSFToken is set for secure HTMX request. This can be done by setting body attribute hx-headers like this:
<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
Install app via pip (currently only as GitHub dependency):
pip install git+https://github.com/OpenEnergyPlatform/django-comparison-dashboard
Add app to your installed apps in django project settings:
DJANGO_APPS = [
...,
"django-comparison-dashboard",
]
You can download example scenario from MODEX like this:
export DJANGO_READ_DOT_ENV_FILE=True; python manage.py shell
within the shell run
from django_comparison_dashboard.sources import modex
modex.ModexDataSource.list_scenarios()[-2].download()
to download example data.