@@ -46,7 +46,7 @@ docker compose --env-file .env.<prod/dev> up --build
4646Optionally, to access the database, create a superuser account:
4747
4848``` bash
49- docker exec -it K-dPS -django python manage.py createsuperuser
49+ docker exec -it kdps -django python manage.py createsuperuser
5050```
5151
5252Afterwards, you can log into the admin interface at e.g. ` http://localhost:80/admin/ ` <br />
@@ -58,25 +58,25 @@ Note: this is only available if DEBUG = true, which is the case in the dev envir
5858
5959When changing models, you need to create migrations in order to update existing databases.
6060
61- - Create new migrations: ` docker exec -it K-dPS -django python manage.py makemigrations `
62- - Optionally, if you have conflicting migrations: ` docker exec -it K-dPS -django python manage.py migrate --merge `
63- - Execute these migrations to update the database: ` docker exec -it K-dPS -django python manage.py migrate `
61+ - Create new migrations: ` docker exec -it kdps -django python manage.py makemigrations `
62+ - Optionally, if you have conflicting migrations: ` docker exec -it kdps -django python manage.py migrate --merge `
63+ - Execute these migrations to update the database: ` docker exec -it kdps -django python manage.py migrate `
6464
6565### Running Tests
6666
6767- start docker container with docker compose(see Running the project using Docker)
6868- wait until Application Startup is Completed
69- - run: ` docker exec -it K-dPS -django python manage.py test `
69+ - run: ` docker exec -it kdps -django python manage.py test `
7070
7171### Working with Fixtures
7272
7373Example given for creating the "patient_states.json" fixture containing all patientstates, statetransitions, subconditions and logicnodes.
7474
75- - clear database of the wanted models via e.g. ` docker exec -it K-dPS -django python manage.py flush `
76- - fill database with data you want to export as fixture: ` docker exec -it K-dPS -django python manage.py import_patient_states `
75+ - clear database of the wanted models via e.g. ` docker exec -it kdps -django python manage.py flush `
76+ - fill database with data you want to export as fixture: ` docker exec -it kdps -django python manage.py import_patient_states `
7777- create fixture:
78- - ` docker exec -it K-dPS -django bash `
78+ - ` docker exec -it kdps -django bash `
7979 - ` export PYTHONIOENCODING=utf8 `
8080 - `python manage.py dumpdata template.patientstate template.statetransition template.subcondition template.logicnode >
8181 data/fixtures/patient_states.json`
82- - now you can load it: ` docker exec -it K-dPS -django python manage.py loaddata patient_states.json `
82+ - now you can load it: ` docker exec -it kdps -django python manage.py loaddata patient_states.json `
0 commit comments