So passen Sie die SimpleJWT -Fehlerantwortnachricht in Django rastframework an
# Import django packages
from django.utils.translation import gettext_lazy as _
# Import external packages
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer as SimpleTokenObtainPairSerializer
class TokenObtainPairSerializer(SimpleTokenObtainPairSerializer):
default_error_messages = {
'no_active_account': _('CUSTOM ERROR MESSAGE HERE')
}
Gentle Gharial