Next we need to enable our newly created profiles API app in our Django project
the way that you enable an app in a project is you open up the profiles
project which is the root project of our Django project and open up settings dot py
if you look at the settings dot py this is the configuration file or the
settings file for our Django project there's a block here called installed
apps this is where you need to list all of the apps that you need to use for
your project so in our project we can install apps either via an external
dependency which is the ones we installed in our requirements dot txt or you
can install apps by creating new apps and then adding it to the installed
apps list so there's a few apps that we need to enable here in our installed
apps so underneath the Django dot contrib dot static files line create a new line and
open the quotes and type rest underscore framework rest framework is the Django
rest framework that we installed earlier and this is the name of the app within
the dependency Django rest framework package that we need to add to our
project underneath this we're going to add another app from the rest
framework and this is called the auth token app so type rest underscore
framework dot auth token
this will allow us to use the authentication token
functionality that comes out the box with the rest framework
finally we're
going to add our profiles API app which we manually added to our project here so
we're going to add a new string and write profiles underscore API and then don't
forget to add the last comma here at the end just to keep it standard
okay so
make sure that you save your settings file and that's how you add apps to
the installed apps of your Django project