django数据库迁移报错:System check identified some issues:


from
django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. # 用户表 class UserInfo(AbstractUser): phone = models.BigIntegerField(null=True)



因为我们继承了django的user表
所以需要在setting.py中配置
AUTH_USER_MODEL = "app01.UserInfo"
原文地址:https://www.cnblogs.com/hellozizi/p/11885579.html