what is wrong with it?KindError: No implementation for kind 'MyUser'??

12 views
Skip to first unread message

potter

unread,
Sep 19, 2010, 11:45:44 PM9/19/10
to gae-sessions
an error :
KindError: No implementation for kind 'MyUser'
.
why ??
"def main(): run_wsgi_app(application)".
how to solve it??is there any help me?
thank you!

dound

unread,
Sep 20, 2010, 2:53:33 PM9/20/10
to gae-sessions
It sounds like you are trying to load a MyUser entity from a session
without importing the MyUser model first.

To ensure that MyUser is available when the session middleware runs,
you must import the MyUser model in your main.py script (assuming the
usual GAE project setup). Otherwise, if a fresh instance of your app
is spun up by GAE, then it might not have imported the MyUser model
before the sessions library tries to convert a protobuf representing a
MyUser entity into an actual Python MyUser instance (leading to the
KindError you're experiencing).

~ David

potter

unread,
Sep 21, 2010, 11:10:58 AM9/21/10
to gae-sessions
hi,david.
thank you for your reply.
i got it.
thank you.
Reply all
Reply to author
Forward
0 new messages