WEBVTT
Kind: captions
Language: en

00:00:00.030 --> 00:00:05.940
Now that we've created our custom user
model and our custom user model manager

00:00:05.940 --> 00:00:10.830
we can configure our Django project to
use this as the default user model

00:00:10.830 --> 00:00:15.500
instead of the one that's provided by
Django

00:00:15.500 --> 00:00:18.560
You set the user model in the

00:00:18.560 --> 00:00:24.240
settings dot py file of the project so
the way that you set it is you scroll to

00:00:24.240 --> 00:00:30.599
the bottom of the file and you create a
new settings line called auth underscore

00:00:30.599 --> 00:00:34.500
user underscore model

00:00:34.500 --> 00:00:39.000
and you set this
to a string which represents the model

00:00:39.000 --> 00:00:45.000
that you want to use as the Django user
model so type it by

00:00:45.000 --> 00:00:49.170
specifying the app that you want to
retrieve the model from so that's the

00:00:49.170 --> 00:00:55.350
profiles underscore API app and then the
name of the model that you want to use

00:00:55.350 --> 00:01:03.570
so that's dot user profile so this tells
Django to look at our profiles API app

00:01:03.570 --> 00:01:08.790
and then find the model called user
profile and use this for all of our

00:01:08.790 --> 00:01:12.680
authentication and user registration in
our project

00:01:12.680 --> 00:01:13.950
Okay so make sure you save

00:01:13.950 --> 00:01:20.119
the file and that's how you configure
the custom user model in Django

