[Django]-Django rest framework " TypeError: 'type' object is not iterable " error

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

Leave a comment