ubuntu 15.10 venv python 3.4 / django 1.9
command:
python manage.py loaddata flight_data.json(yaml)
errors:
json: django.core.serializers.base.DeserializationError: Problem installing fixture '/home/nerdbox2/django_/logbook/flights/fixtures/flight_data.json': 'model'
yaml: django.core.serializers.base.DeserializationError: Problem installing fixture '/home/nerdbox2/django_/logbook/flights/fixtures/flight_data.yaml': 'model'
After trying several csv->model packages and no luck, I decided to use an online converter for both csv-json and csv-yaml per the Django Docs and still no luck. I have ~2100 records to fill the db with.
yeah, I'm a noob but I really have been beating this to death for the past 3 days!
Any help would be appreciated!
model, json and yaml in comment below
loaddataduring these three days? Because you would find out, thatloaddatacan only load fixtures produced by commanddumpdata, but your data have different format. Try to dump something viadumpdatato see how the data should look like and edit your fixtures accordingly, or create a custom command for loading the format of data you have. - yedpodtrzitko