3👍
✅
I’m working on linux.The problem was that at the head of the db.json
,the sentence “trying windows paths instead” is attached and highlighted.
When I open the file using vi command
, I thought it’s not part of the file. But it is the part of the file. I just manually deleted this sentence. It worked. But finally I didn’t use python loaddata
for database migration. You may have many errors if you use pyhton functions. So I quitted do it on the Django built-in function and used pgloader
. It’s easy way with no errors.
Source:stackexchange.com