title: UnpicklingError invalid load key, '{'
body: <p>I am working on an application which is in <code>Django</code>. I am trying to store some data structure <code>e.g. dictionary</code> in <code>MySQL</code> db. So i use Python <code>Pickle</code> module. It works fine when i store it in db using <code>pickle.dumps(some_structure)</code>. My DB field is <code>longblob</code> mode is <code>binary</code>.</p>
  
  <p>But when i access the field of model object in django:</p>
  
  <pre><code>obj = someModel.get(pk=1)
  some_structure = obj.field
  content  = pickle.loads(some_structure)
  </code></pre>
  
  <p>it raises following error:</p>
  
  <pre><code>UnpicklingError: invalid load key, '{'.
  </code></pre>
  
  <p>Please help me, i have tried google but it does'nt help me, also there is one similar <a href="https://stackoverflow.com/questions/4915397/django-blob-model-field">Question</a> but it is not related to my problem as i am storing in db.</p>