Python 挂架:Webhelpers:缺少安全表单模块
我使用go-Pylons.py脚本安装了Pylons 0.9.7。Python 挂架:Webhelpers:缺少安全表单模块,python,module,pylons,Python,Module,Pylons,我使用go-Pylons.py脚本安装了Pylons 0.9.7。 我有一行python代码: from webhelpers.html.secure_form import secure_form 当我尝试为我的应用程序提供服务时,我得到一个错误:没有模块安全表单 我已经试着从webhelpers和那些工具中编写importWebHelpers.html.tags和其他模块。我想知道为什么我没有安全表单以及如何手动获取此模块?我试过重新运行go-pylons.py,但没用 有什么想法吗?呃,
我有一行python代码:
from webhelpers.html.secure_form import secure_form
当我尝试为我的应用程序提供服务时,我得到一个错误:没有模块安全表单
我已经试着从webhelpers和那些工具中编写importWebHelpers.html.tags和其他模块。我想知道为什么我没有安全表单以及如何手动获取此模块?我试过重新运行go-pylons.py,但没用
有什么想法吗?呃,由于某种原因,我安装了1.0b4个WebHelper,并且保护表单的路径发生了变化。。。()我想我现在的问题是:如何安装以前版本的webhelpers?我已轻松安装如果您的webhelpers版本为1.0b4或更高版本,则安全表单位于webhelpers.pylonslib下,即
from webhelpers.pylonslib import secure_form
我也遇到了这个 如果其他帖子不明显,无法获得旧版本的webhelpers,您可以运行:
easy_install webhelpers==0.6.4
事实上,我得到了一些类似的东西,正确的测试输入线是: 从webhelpers.pylonslib.secure\u form导入secure\u formeasy\u安装“webhelpers==1.0b4”