models中导入from django.contrib.auth.models import AbstractUserdjango
setting中设置 AUTH_USER_MODEL = "app名称.UserInfo"不然会报错cookie