截图:
报错信息缩略版:
UndefinedError: parameter 'form' was not provided
报错信息完整版:
(venv_flask_henry) henry@henry-virtual-machine:~/dev/flask_henry$ python hello.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
[2017-11-29 12:37:47,496] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "hello.py", line 37, in index
return render_template('index.html', form=form, name=name)
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template
context, ctx.app)
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask/templating.py", line 116, in _render
rv = template.render(context)
File "/home/henry/dev/flask