Django: saving pickled object

Posted by pistacchio on Stack Overflow See other posts from Stack Overflow or by pistacchio
Published on 2010-06-05T11:14:49Z Indexed on 2010/06/05 11:22 UTC
Read the original article Hit count: 146

Filed under:
|

Hi, i have a large dictionary I'd like to save. I have pickled it using cPickle.dumps and saved the result into a TextField. When trying to retrieve it (cPicle.loads) i get the following error:

loads() argument 1 must be string, not unicode

Does anybody have any experience in serializing python objects and storing them in a DB using Django? Thanks in advance.

© Stack Overflow or respective owner

Related posts about python

Related posts about django