这是我的错误信息
Traceback (most recent call last): File "app.py", line 9, in
<module>
from forms import ContactForm File "/home/wdgzephy/zephy-Web/forms.py", line 1, in <module>
from flask.ext.wtf import Form, TextField, TextAreaField, SubmitField, validators, ValidationError File
"/home/wdgzephy/zephy-Web/venv/local/lib/python2.7/site-packages/flask/exthook.py",
line 87, in load_module
raise ImportError('No module named %s' % fullname) ImportError: No module named flask.ext.wtf.TextField
你能帮我解决这个错误吗?我的错误是什么?
你必须导入wtforms(对于flask 0.9.0及以上版本):
from flask.ext.wtf import Form
from wtforms import TextField, TextAreaField, SubmitField
from wtforms.validators import Required
我是一名优秀的程序员,十分优秀!