How to migrate Django models from mysql to sqlite (or between any two database systems)?

后端 未结 4 1662
后悔当初
后悔当初 2021-02-06 04:42

I have a Django deployment in production that uses MySQL.

I would like to do further development with SQLite, so I would like to import my existing data to an SQLite dat

4条回答
  •  星月不相逢
    2021-02-06 05:38

    Have you tried using manage.py dumpdata > datadump and then when the new database is set up correctly, use python manage.py loaddata datadump?

提交回复
热议问题