From 59159dbb75e635266c701bfa6b82ea9cf21e71df Mon Sep 17 00:00:00 2001
From: Noah Jonah Gente <fu2662cw@mi.fu-berlin.de>
Date: Sun, 6 Jun 2021 10:55:59 +0200
Subject: [PATCH] Add instructions to readme on how to load fixtures

---
 README.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/README.md b/README.md
index 256d9da..ad37acf 100644
--- a/README.md
+++ b/README.md
@@ -70,3 +70,16 @@ python manage.py runserver
 ```
 
 If successful, you can now see the running server in your browser at `http://127.0.0.1:8000`.
+
+## Populate the database with test data
+The json-Files in quiz/fixtures define some test data. To load the test data into your database run
+```
+python manage.py loaddata quiz/fixtures/*.json
+```
+This will replace all your database content with the content defined in the fixtures. 
+
+## Use the django admin interface to view and edit data during development
+If you started the server as described above, you can access the django admin interface on
+[localhost:8000/admin](localhost:8000/admin).   
+If you loaded the data from the fixtures you can login with username: "admin" and password: "password"
+
-- 
GitLab