modles.py
from django.contrib.auth.models import AbstractUser
class UserInfo(AbstractUser):
...
需要在settings.py中配置
AUTH_USER_MODEL = ‘应用名.UserInfo‘
原文地址:https://www.cnblogs.com/q1ang/p/10049682.html
时间: 2024-10-08 11:56:32
modles.py
from django.contrib.auth.models import AbstractUser
class UserInfo(AbstractUser):
...
需要在settings.py中配置
AUTH_USER_MODEL = ‘应用名.UserInfo‘
原文地址:https://www.cnblogs.com/q1ang/p/10049682.html