2nd Generation of the Learning Energy Systems interface
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.
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