1python3 manage.py dumpdata > datadump.json
2# configure your DATABASES in settings.py
3python3 manage.py migrate --run-syncdb
4# exclude contenttype data !IMPORTANT
5
6python3 manage.py shell
7from django.contrib.contenttypes.models import ContentType
8ContentType.objects.all().delete()
9quit()
10
11# import data
12python3 manage.py loaddata datadump.json