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

Solution: Import the 'Security' module

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

from flask_security import Security

 

For more information:
Python flask_security Security