Pylons:Webhelpers:缺少secure_form模块

tom*_*tom 2 python pylons module

我使用go-pylons.py脚本安装了Pylons 0.9.7.
我有一行python:

from webhelpers.html.secure_form import secure_form
Run Code Online (Sandbox Code Playgroud)

当我尝试提供我的应用程序时,我收到错误:没有模块secure_form.

我尝试从webhelpers和那些工作中编写import webhelpers.html.tags和其他模块.我想知道为什么我没有secure_form以及如何手动获取此模块?我试过重新运行go-pylons.py并没有帮助.

有任何想法吗?

num*_*er5 7

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

from webhelpers.pylonslib import secure_form
Run Code Online (Sandbox Code Playgroud)