Django study notes --- Custom User table

1. Create a folder users

Equivalent to: 

$ python manage.py startapp users

In fact, the default Django has given us to create a user table, but do not meet our needs, we need to inherit it, expand their property

 

Write your own users model

In setting the new registration APP

The declaration of overloaded users in setting the

makemigrations users

migrate

 

Published 35 original articles · won praise 61 · views 160 000 +

Guess you like

Origin blog.csdn.net/woailyoo0000/article/details/103791763