lostplaces-backend/django_lostplaces/testdata/testdata.md

816 B

testdata

This testdata is provided for you to see the database filled with some dummycontent.

Database content

testdata is provided in this repository / directory in testdata.json. It has been dumped using:

manage.py dumpdata --all --exclude=auth --exclude=sessions --indent 4 --o testdata/testdata.json

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

Images

Although I created pretty small testimages, I think they are still too clunky to mindlessly dump it into the code repository, so I provide an archive containing a folder structure of images to be extracted into the uploads/ folder.