How to Solve NameError: name 'Response' is not defined -- rest_framework
Solution: Import the 'Response' module
# Add the following line to the top of your code
from rest_framework.response import Response
For more information:
rest_framework Response