WEBVTT
Kind: captions
Language: en

00:00:00.030 --> 00:00:06.089
Next we can enable the Django admin for
our user profile model by default the

00:00:06.089 --> 00:00:10.260
Django admin is already enabled on all
new projects however you need to

00:00:10.260 --> 00:00:14.340
register any newly created models with
the Django admin so it knows that you

00:00:14.340 --> 00:00:19.080
want to display that model in the admin
interface let's go ahead and enable the

00:00:19.080 --> 00:00:23.860
Django admin for our user profile model

00:00:23.860 --> 00:00:26.039
Open up the Atom editor and make sure

00:00:26.039 --> 00:00:31.199
we have the profiles REST API project
open the way that you register models is

00:00:31.199 --> 00:00:36.899
you add them to this admin dot py file which
is automatically created when you create

00:00:36.899 --> 00:00:39.700
a new app in your project

00:00:39.700 --> 00:00:43.170
we're going enable our model by

00:00:43.170 --> 00:00:49.050
first importing our models from the
profiles API project so let's type from

00:00:49.050 --> 00:00:54.140
profiles underscore API import models

00:00:54.140 --> 00:00:57.870
then you register models by typing admin

00:00:57.870 --> 00:01:04.189
dot site register models dot user
profile

00:01:04.189 --> 00:01:10.950
this tells the Django admin to register
our user profile model with the admin

00:01:10.950 --> 00:01:15.409
site so it makes it accessible through
the admin interface

