Skip to content

sedos-project/sedos_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEDOS Dashboard

Dashboard to view and compare scenario data

Built with Cookiecutter Django Black code style

License: MIT

Installation (locally)

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:

  1. Install Python, Postgresql and Pycharm Professional with academic license (https://www.jetbrains.com/community/education/#students) on your machine
  2. Clone sedos_dashboard repository:
  3. Clone django_comparison_dashboard repository:
  4. Clone django_energysystem_viewer repository:
  5. Enter sedos_dasboard directory
  6. Change to developer branch: checkout dev
  7. Copy SEDOS_Modellstruktur.xlsx into new directory: /sedos_dashboard/sedos_dashboard/media
  8. Create a virtualenv: python3.11 -m venv
  9. Activate the virtualenv you have just created: source /bin/activate (or in windows \Scripts\activate)
  10. 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
  11. Activate pre-commit: pre-commit install
  12. Setup local database: createdb --username=postgres gui_db
  13. 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
  14. Apply migrations: export (set on windows) DJANGO_READ_DOT_ENV_FILE=TRUE python manage.py migrate
  15. Set django run configuration runserver in pycharm: set name: runserver reference environment variable: DJANGO_READ_DOT_ENV_FILE=TRUE set working directory: