First start the new app
python manage.py startapp app_name
Add rest_framework and app_name in settings.py
INSTALLED_APPS = [
...,
rest_framework,
rest_framework.authtoken,
app_name
]
Create the model
for the user
Add Auth-user in setting.py