开发者

How can I add user profile support to a google app engine app?

开发者 https://www.devze.com 2023-01-15 13:45 出处:网络
I have开发者_如何学运维 a Google App Engine app based on django / django_appengine that I wish to modify by adding user profile support to it, because the basic user model is a bit simplistic for my s

I have开发者_如何学运维 a Google App Engine app based on django / django_appengine that I wish to modify by adding user profile support to it, because the basic user model is a bit simplistic for my situation.

What's the best way to do this?


You can create a Model called for example UserProfile which has as its key a user's email address or user ID.

UserProfile profile = UserProfile.get_or_create(user.user_id) will make sure that no user profiles are created for existing user IDs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号