77π
β
On the settings.py file append comma at the end of '...JSONWebTokenAuthentication'
line as below:
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
),
}
Attention: without comma this is not a tuple
π€M.javid
Source:stackexchange.com