models中導入from django.contrib.auth.models import AbstractUserdjango
setting中設置 AUTH_USER_MODEL = "app名稱.UserInfo"不然會報錯cookie