Re: Django / memcached / pickle / Unicode = confusion + UnicodeDecodeError

2009-01-16 Thread Rachel Willmer
I'm using memcached, the latest version from Ubuntu 8.10. The cache is initially empty for that key (I was changing the key when testing to force this) and the contents of cached were originally coming from a call to Bank.objects.all(). Thanks for the explanation about what the iso-8859-1 is doi

Re: Django / memcached / pickle / Unicode = confusion + UnicodeDecodeError

2009-01-14 Thread Malcolm Tredinnick
On Tue, 2009-01-13 at 19:30 +, Rachel Willmer wrote: > I've just upgraded some code to Django 1.0 and the caching stopped working. > > I have found a fix but I don't understand what's happening so if > anyone can explain, I'd be grateful. > > My code used to look somthing like this (simplifi

Django / memcached / pickle / Unicode = confusion + UnicodeDecodeError

2009-01-13 Thread Rachel Willmer
I've just upgraded some code to Django 1.0 and the caching stopped working. I have found a fix but I don't understand what's happening so if anyone can explain, I'd be grateful. My code used to look somthing like this (simplified for clearer reading) cached=cache.get(key) if cached: list=pi