我有一个基于django/django_appengine的googleappengine应用程序,我希望通过添加用户配置文件来修改它,因为基本用户模型对于我的情况来说有点简单。
最好的办法是什么?
例如,可以创建一个名为 UserProfile
UserProfile
UserProfile profile = UserProfile.get_or_create(user.user_id) 将确保没有为现有用户标识创建用户配置文件。
UserProfile profile = UserProfile.get_or_create(user.user_id)