Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 789 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 789 Bytes

learning-energy-systems-v2

2nd Generation of the Learning Energy Systems interface

Quick run

Just run ./dockerize.sh, this should build a docker image then run it as a container called les. Once running the web-server should be reachable at http://localhost:8000/.

If you need to rebuild the image (e.g. after updating packages in requirements.txt), you can pass the -r option to ./dockerize.sh to rebuild the image.

Running commands on the docker container

Migrating with python manage.py:

docker exec -i -t les python manage.py migrate

Creating a super user:

docker exec -i -t les python manage.py createsuperuser --email [email protected] --username admin

Running the django shell:

docker exec -i -t les python manage.py shell