Now that we've created our custom user model and our custom user model manager
we can configure our Django project to use this as the default user model
instead of the one that's provided by Django
You set the user model in the
settings dot py file of the project so the way that you set it is you scroll to
the bottom of the file and you create a new settings line called auth underscore
user underscore model
and you set this to a string which represents the model
that you want to use as the Django user model so type it by
specifying the app that you want to retrieve the model from so that's the
profiles underscore API app and then the name of the model that you want to use
so that's dot user profile so this tells Django to look at our profiles API app
and then find the model called user profile and use this for all of our
authentication and user registration in our project
Okay so make sure you save
the file and that's how you configure the custom user model in Django