我注意到Django提供的没有Date of Birth Field。我不想只为了包含这个custom User class而编写自己的attribute。我也可以将User Model的内容保存到一个带有附加date of birth信息的profile model中。编辑2:(在实现了frnhr的解决方案之后):
两个问题:没有在activation email中发送development server。我尝试了default User model和django-registration,我看到act
我有一个应用程序,它使用一个名为MyUser的自定义用户模型、一个自定义用户管理器和一个自定义UserCreationForm。我试图将其余的字段从MyUser模型添加到UserCreationForm中,但是我一直得到错误:django.core.exceptions.FieldError: Unknown field(s)设置自定义UserCreationForm的正确方法是什么?我为什么要犯这个错误?这是我的密码。Models.py
from <