stormpathFlask无法初始化

2024-09-30 16:25:46 发布

您现在位置:Python中文网/ 问答频道 /正文

使用Flask-Stormpath进行基于令牌的身份验证

当我注册时: http://localhost:5005/register 正在获取stormpath默认注册。 当我填写详细信息时,我得到了一个错误list index out of range

在pip内部调试时,我看到错误在flask_stormpath/models行101中 current_app.stormpath_manager.application.accounts.create({ 'email': email, ... }) 错误是,特别是: current_app.stormpath_manager.application

这就是我发起风暴之路的方式:

from flask.ext.stormpath import StormpathManager
app = Flask(__name__)
StormpathManager(app = app)

我认为这与延迟加载应用程序有关。但是错误信息不是很有描述性。你知道吗

你知道怎么调试吗?你知道吗


Tags: 身份验证registerapplocalhosthttpflaskapplicationemail