I am not sure whether this is the correct place to post such kind of 
question, but still.

I am working on a project written with use of Django framework and running 
on GAE instances. It also uses Google's memcache as a default cache 
backend. This project was developed with use of Django 1.3 and it works on 
it nicely. But recently we tried to run our project on Django 1.4 and run 
into a strange exception: argument of type 'Client' is not iterable.

The reason for this exception lies in 
this<https://github.com/django/django/commit/c11f9c3193901215ec79732af6ab6c66b3c1c2ba#L0R31>
 commit. 
Here are two lines that have been added since Django 1.3:

    if (KEY_PREFIX + session_key) in cache:
        return True

These lines assume that cache object is iterable. Cache object itself is an 
instance ofgoogle.appengine.api.memcache.Client class as specified in 
project's settings.py. This class indeed does not provide an iterable 
interface.

So my question: how is (if it is) memcache supposed to work with Django 1.4?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/CzTGLvr80cgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to