How to Solve NameError: name 'UserMixin' is not defined -- flask_security

Solution: Import the 'UserMixin' module

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

from flask_security import UserMixin

 

For more information:
Python flask_security UserMixin