Dumpdata:
./manage.py dumpdata > db.json
If you loaddata to different database you will get IntegrityError. To fix this problem, you should excluding contenttypes and auth.permissions tables
IntegrityError: Problem installing fixture 'db.json': Could not load contenttypes.ContentType(pk=2)
./manage.py dumpdata --exclude auth.permission --exclude contenttypes > db.json
Loaddata:
./manage.py loaddata db.json
Modification Date: 2018-11-29 10:18:56