Issue
I want to export my data of some models to csv/json/txt file. Is the 'dumpdata' function is the best way?
What is the best option?
I tried: Python3 manage.py dumpdata myapps > myapps.json Or copy from my DB tables
Thanks a lot
Solution
So I found this option as a good one:
python3 manage.py dumpdata auth myapp1, myapp2 > mydata.json
It saves my data into a JSON file and then can load it with
python3 manage.py loaddata mydata.json
Answered By - Itamar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.