From b17e290cf144dfed1c866a0291ef0153b176bd6a Mon Sep 17 00:00:00 2001 From: CDautermann Date: Fri, 8 Feb 2019 14:22:24 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a41cf37..e30c1ed 100644 --- a/README.md +++ b/README.md @@ -25,16 +25,24 @@ CONTAINER ID IMAGE COMMAND CREATED f1b377c3700f invsystem_web "python3 manage.py r…" 1 minute ago Up 1 minute 0.0.0.0:8000->8000/tcp invsystem_web_1 1289f9bcdd04 postgres "docker-entrypoint.s…" 1 minute ago Up 1 minute 0.0.0.0:5432->5432/tcp invsystem_db_1 ``` + You need to copy the `CONTAINER ID` for the image `invsystem_web` + 2. Execute the command `docker exec -i -t /bin/bash` + 3. You are now attatched to the docker container via a shell.
+ Enter `python3 manage.py makemigrations` and `python3 manage.py migrate`.
This sets up the database and initializes it. + 4. Create the superuser using `python3 manage.py createsuperuser` and enter the requested information + 5. Open your browser and visit `localhost:8000` or click [here](http://localhost:8000) + 6. Click the "Einloggen" button in the top right corner and log in with the account you just created using `createsuperuser` + 7. You can now access the server and use all of its features If you need the django admin panel you can just access `localhost:8000/admin` and log in