Answer the question
In order to leave comments, you need to log in
How to fix error when starting Django server?
Good day, when starting the django server, I get the following errors:
ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthenticaiton' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: Module "rest_framework_simplejwt.authentication" does not define a "JWTAuthenticaiton" attribute/class.
I'm new to django, don't really understand what django is complaining about
Answer the question
In order to leave comments, you need to log in
Hello,
Well, it looks like they didn't install django rest framework since it can't import it ( https://pypi.org/project/djangorestframework/ )
You need to
pip install djangorestframework
Apparently you want to use jwt tokens for authorization. You also need to install the djangorestframework-simplejwt package
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question