[Solved]-In Django loaddata it throws errors for json format but work properly for yaml format, why?

1👍

I’ve checked your code in linux mint/django 1.9/python 2.7 and it works fine.

I think the problem may be the codification you have used in your files. Please make sure that the json file uses UTF-8 codification and be careful not to use BOM. Notepad++ editor can determine if the file includes a BOM and remove it.

Leave a comment