How to Solve NameError: name 'Local' is not defined -- asgiref

Solution: Import the 'Local' module

# Add the following line to the top of your code
from asgiref.local import Local

 

For more information:
asgiref Local