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