Reputation: 41
When im trying to load data in Django it is throwing out above error.
python manage.py loaddata path_of_file.py
Upvotes: 0
Views: 2487
Reputation: 2174
The loaddata command only accepts serialized files (such as json) or compressed files (such as zip).
https://docs.djangoproject.com/en/1.8/ref/django-admin/#loaddata-fixture-fixture
Upvotes: 2