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

Solution: Import the 'login_required' module

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

from flask_security import login_required

 

For more information:
Python flask_security login_required