1、UserInfo类继承了Django模型自带的User类,需要导入AbstractUser 2、然后在settings.py中配置 转载于:https://www.cnblogs.com/lucaq/p/7544893.html