Skip to content
Snippets Groups Projects
Commit 59159dbb authored by fu2662cw's avatar fu2662cw :speech_balloon:
Browse files

Add instructions to readme on how to load fixtures

parent 402d3d28
No related branches found
No related tags found
No related merge requests found
...@@ -70,3 +70,16 @@ python manage.py runserver ...@@ -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`. 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment