📅  最后修改于: 2022-03-11 14:45:28.230000             🧑  作者: Mango
#Make sure to have the permissions in your settings.py file like that:
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
),
}