using Abstract User and email是使用的默认日志记录参数。post地址:/ AttributeError / 尝试获取序列化程序UserSerializer上的字段email的值时获取AttributeError。序列化程序字段的命名可能不正确,并且与Post实例上的任何属性或键都不匹配。最初的异常文本是:'Post‘对象没有
在我的web应用程序中,我有一个定制的注册和登录表单,我使用的是HTML/CSS,而不是Django的form.as_p和Bootstrap。#create the new useruser = CustomUser(name=username, email=email, username=username)index.html', {'message': messag