Dashboard to view and compare scenario data
License: MIT
Follow instructions from https://cookiecutter-django.readthedocs.io/en/latest/developing-locally.html#setting-up-development-environment
but instead of creating repo via cookiecutter (TOP 3) you have to clone it. Afterwards, you don't have to git init
the repo (TOP 4), as you cloned it already.
More detailed step by steps instructions based on first user experiences are described below:
- Install Python, Postgresql and Pycharm Professional with academic license (https://www.jetbrains.com/community/education/#students) on your machine
- Clone sedos_dashboard repository:
- Clone django_comparison_dashboard repository:
- Clone django_energysystem_viewer repository:
- Enter sedos_dasboard directory
- Change to developer branch: checkout dev
- Copy SEDOS_Modellstruktur.xlsx into new directory: /sedos_dashboard/sedos_dashboard/media
- Create a virtualenv: python3.11 -m venv
- Activate the virtualenv you have just created: source /bin/activate (or in windows \Scripts\activate)
- Install required packages in terminal: pip install -r requirements/local.txt Additional required packages: pip install django-template-partials pip install django-htmx Add django_comparison_dashboard and django_energysystem_viewer apps in edit-mode to project: pip install -e pip install -e
- Activate pre-commit: pre-commit install
- Setup local database: createdb --username=postgres gui_db
- Create environment file .env in sedos_dashboard with the following lines: DATABASE_URL=postgres://postgres:[email protected]:5432/gui_db CELERY_BROKER_URL=redis://localhost:6379/0 USE_DOCKER=False
- Apply migrations: export (set on windows) DJANGO_READ_DOT_ENV_FILE=TRUE python manage.py migrate
- Set django run configuration runserver in pycharm: set name: runserver reference environment variable: DJANGO_READ_DOT_ENV_FILE=TRUE set working directory: