问题:Django Manager isn't available; 'auth.User' has been swapped for 'users.MyUser'
问题背景:
from django.contrib.auth.models import Users User.objects.create_user(username='aaaaaaa',password='123qweasd')
解决方法:
您已创建自定义用户。 将其添加到models.py,views.py,forms.py中
from django.contrib.auth import get_user_model User = get_user_model()