From days my friend has worked in the OS:windows and he did a part of the django application using the database :sqlite3 , he give me a backup of his work to complete my part , on the backup i have found a database named databaseproject.db, My question here that am using Linux as an OS and postgresql , How I can migrate this database databaseproject.db(it's an sqlite3 database ) to postgresql.
Ps: when i have tried do the command below on the directory(after copied the project in a virtual environement on my linux):
python manage.py dumpdata --natural-foreign \
--exclude=auth.permission --exclude=contenttypes \
--indent=4 > data.json
----> command go without errors, Here i have found the data.json contain an empty list..
So i want to know , How i can correctly migrate from sqlite3 to postgresql.?
Thanks in advance.