diff --git a/README.md b/README.md index 256d9dab28c4f86dfc8b0b7d08ca2db7b53ee165..ad37acf90a2b00b622a54c0fbde316c7ab707735 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" +