Problem Description: I built a model class in the model, run the console, it reported errors:
Solution: 1, first of all need to override the setting in AUTH_USER_MODEL
AUTH_USER_MODEL = 'users.UserProfile'
2, and then generate the migration file, specify the name of the app:
python manager.py makemigrations users
3, finally will be able to migrate data
python manager.py migrate
4. If the migration is a problem, you might be generated by the migration file error, you can migrate files to delete and then repeat steps 2 and 3, do not specify the name of the app when repeat step 2.