gpt4 book ai didi

python - Pylons:Webhelpers:缺少 secure_form 模块

转载 作者:行者123 更新时间:2023-11-28 19:51:50 25 4
gpt4 key购买 nike

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

from webhelpers.html.secure_form import secure_form

当我尝试为我的应用程序提供服务时,出现错误:没有模块 secure_form。

我已经尝试编写 import webhelpers.html.tags 和来自 webhelpers 的其他模块,这些都有效。我想知道为什么我没有 secure_form 以及如何手动获取此模块?我尝试重新运行 go-pylons.py 但没有帮助。

有什么想法吗?

最佳答案

如果你的webhelpers版本是1.0b4或以上,secure_form在webhelpers.pylonslib下,即。

from webhelpers.pylonslib import secure_form

关于python - Pylons:Webhelpers:缺少 secure_form 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2219316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com