Joined July 2017
·

pythonian

Posted to Django dumpdata and loaddata over 1 year ago

Hi, thanks for this post. I was able to use it to save some dats into json but when I tried to load same data into the db, I got the error:

raise base.DeserializationError.WithData(e, d['model'], d.get('pk'), pk)

local variable 'pk' referenced before assignment

How do I go around this error? Thanks

Achievements
1 Karma
0 Total ProTip Views