Create a custom user model to use as the new default
Gotcha! Django comes with a default auth library that utilizes a default hidden User model. This default model cannot be easily migrated so DO NOT use this model. Even the Django docs recommend extending this into a custom user model.
Why would you want to extend the model? Imagine you later want to record a users birthdate, using the default model, there is no easy way to add this field to the model. By extending the mode you are future proofing your user model.
Gotcha! Extending the model won’t be enough. In creating your own User model, you must...
- Step 1: Create new app with "manage.py startapp"