一个空格引起的错误。 python 'render_field' tag requires a form field followed by a list of attributes and values in the form attr="value": "form-control" 提示 解决办法: 把 class后面的空格去掉即可。