在Settings 中 加入
AUTH_USER_MODEL = 'users.UserProfile'
也就是'app.类名'
在user 的 model 中 继承自带的 AbstractUser
from django.contrib.auth.models import AbstractUser
在Settings 中 加入
AUTH_USER_MODEL = 'users.UserProfile'
也就是'app.类名'
在user 的 model 中 继承自带的 AbstractUser
from django.contrib.auth.models import AbstractUser