It turns out I had to add
rest_framework.authtoken,
to installed apps in djangoProject1 settings.py and a new line with
> REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
],
}
too.
CLICK HERE to find out more related problems solutions.