i can’t get authenticated with my api using django

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.

Leave a Comment

Your email address will not be published.

Scroll to Top