How to Solve NameError: name 'TokenObtainPairView' is not defined -- rest_framework_simplejwt
Solution: Import the 'TokenObtainPairView' module
To Solve the error, add the following line to the top of your code.
from rest_framework_simplejwt.views import TokenObtainPairView
For more information:
Python rest_framework_simplejwt TokenObtainPairView