关于Model class users.models.User doesn't declare an explicit app_label and isn't in an application in
原因: 使用相对路径引用Model模块 from .models import User解决方案1: 改成绝对路径 from users.models import User解决方案2: 看是否创建应用时,应用名apps.py里面的名字是否改变 class UsersConfig(AppConfig): name = 'apps.users' ...