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