Django扩展auth模块的user模型,各种报错

migration报错

https://stackoverflow.com/questions/41032038/migration-fails-when-extending-django-user-model

第一步
python manage.py makemigrations your_app_name
第二步
python manage.py migrate

使用报错

https://stackoverflow.com/questions/17873855/manager-isnt-available-user-has-been-swapped-for-pet-person

你可能感兴趣的:(Django扩展auth模块的user模型,各种报错)