How to Solve NameError: name 'Response' is not defined -- starlette

Solution: Import the 'Response' module

To Solve the error, add the following line to the top of your code.

from starlette.responses import Response

 

For more information:
Python starlette Response