Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pylons: Webhelpers: missing secure_form module

I installed Pylons 0.9.7 using the go-pylons.py script.
I have a line of python:

from webhelpers.html.secure_form import secure_form

When I try to serve my application I get the error: no module secure_form.

I've tried writing import webhelpers.html.tags and other modules from webhelpers and those work. I'm wondering why I don't have secure_form and how I can obtain this module manually? I've tried re-running go-pylons.py and it didn't help.

Any ideas?

like image 383
tom Avatar asked Apr 01 '26 03:04

tom


1 Answers

if your webhelpers version is 1.0b4 or above, secure_form is under webhelpers.pylonslib, ie.

from webhelpers.pylonslib import secure_form
like image 76
number5 Avatar answered Apr 03 '26 16:04

number5



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!