电缆塔:Webhelpers:缺少secure_form modu

2024-09-29 06:25:22 发布

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

我用go安装了0.9.7的电缆塔-桥塔.py脚本。
我有一行Python:

from webhelpers.html.secure_form import secure_form

当我试图为我的应用程序提供服务时,我得到了一个错误:没有模块安全表。在

我试过写importwebhelpers.html.tags以及其他来自webhelpers的模块。我想知道为什么我没有secure_form以及如何手动获取这个模块?我试着再跑一次去吧-桥塔.py但没用。在

有什么想法吗?在


Tags: 模块frompyimportform脚本应用程序go
3条回答

我也碰到过这个。在

如果其他帖子无法明显获取旧版本的webhelpers,您可以运行:

easy_install webhelpers==0.6.4

如果您的webhelpers版本为1.0b4或更高版本,则secure_form将位于webhelpers.pylonslib,即

from webhelpers.pylonslib import secure_form

呃,出于某种原因,我安装了1.0b4的webhelpers,安全表单的路径改变了。。。(http://groups.google.com/group/pylons-discuss/msg/695d73b831a4aee3)我想我的问题现在变成了:如何安装以前版本的webhelpers?我有简单的安装

相关问题 更多 >