import sqlite to mysql django

Solutions on MaxInterview for import sqlite to mysql django by the best coders in the world

showing results for - "import sqlite to mysql django"
María Alejandra
10 Oct 2016
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