[Fixed]-Django Rest Framework Auth

1👍

From django docs:

If you’re starting a new project, it’s highly recommended to set up a custom user model, even if the default User model is sufficient for you. This model behaves identically to the default user model, but you’ll be able to customize it in the future if the need arises:

It is highly recommended that you create the Custom User Model instead of going with default User model provided by django unless you are very sure that you wont need any changes in the functionalities of the user model.

You can also extend the User model using OneToOneRelationship if all you wanted is adding extra fields.

Even if you add custom user model, it can still be added and viewed in Django Admin.

Leave a comment