Adapted testdata doc.

This commit is contained in:
Marcus Scholz 2020-09-28 20:51:41 +02:00
parent 5e8e865a99
commit e0d6d81907

View File

@ -1,5 +1,7 @@
# testdata # testdata
This testdata is provided for you to see the database filled with some dummycontent.
## Database content ## Database content
testdata is provided in this repository / directory in testdata.json. It has been testdata is provided in this repository / directory in testdata.json. It has been
dumped using: dumped using:
@ -8,7 +10,8 @@ dumped using:
manage.py dumpdata --all --exclude=auth --exclude=sessions --indent 4 --o testdata/testdata.json manage.py dumpdata --all --exclude=auth --exclude=sessions --indent 4 --o testdata/testdata.json
``` ```
You can import it using To successfully import this testdata, you have to create 2 users. ID=1 is your normal superuser, ID=2 is an unprivileged user.
You can import it using:
``` ```
manage.py loaddata testdata.json manage.py loaddata testdata.json