def smart_account(app):
if os.environ['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>return<EOL><DEDENT>from flask_security import SQLAlchemyUserDatastore, Security<EOL>account_module_name, account_class_name = os.environ[<EOL>'<STR_LIT>'].rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>account_module = importlib.import_module(account_module_name)<EOL>account_class = getattr(account_module, account_class_name)<EOL>role_module_name, role_class_name = os.environ[<EOL>'<STR_LIT>'].rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>role_module = importlib.import_module(role_module_name)<EOL>role_class = getattr(role_module, role_class_name)<EOL>r = True if os.environ[<EOL>'<STR_LIT>'] != '<STR_LIT>' else False<EOL>Security(app,<EOL>SQLAlchemyUserDatastore(<EOL>app.db, account_class, role_class),<EOL>register_blueprint=r)<EOL>pass<EOL>
尝试使用内置方式构建账户