Changes between Initial Version and Version 2 of Ticket #10865


Ignore:
Timestamp:
Apr 18, 2009, 10:05:41 AM (16 years ago)
Author:
Alex Gaynor
Comment:

Please use preview. Also can you provide your models so we can reproduce.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10865 – Description

    initial v2  
    11I am getting an error while trying this code. I am using memcached as my backend. It looks like it isn't able to correctly pickle the queryset. This article makes me think it should be able to pickle them... http://docs.djangoproject.com/en/dev/ref/models/querysets/#pickling-querysets
    2 
     2{{{
    33>>> places = Place.objects.all()
    44>>> cache.set("places", pickle.dumps(places))
     
    1616    __import__(module)
    1717TypeError: __import__() argument 1 must be string without null bytes, not str
     18}}}
Back to Top