Skip to content

Files

Latest commit

 

History

History
110 lines (73 loc) · 3.05 KB

README.rst

File metadata and controls

110 lines (73 loc) · 3.05 KB
Repo logo

Django Comparison Dashboard

License License
Documentation |badge_documentation|
Publication  
Development open issues closes issues closes issues closes issues
Community contributions contributors counter

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.