Flask web 开发出现错误:TypeError: Allowed methods have to be iterables of strings, for example: @app.route(..., methods=["POST"])
摘要:
没有发现普通都语法错误,然后一一比对官方教程里面的代码,发现是在“@bp.route('/<int:id>/delete', methods=('POST'))”这一行代码里面methods的赋值有问题,要求是一个可迭代对象;但是现在的methods并不是一个元祖。所以要在mehtods赋值的第一个 阅读全文
posted @ 2018-09-17 14:28 一根头发丝的宽度 阅读(1152) 评论(0) 推荐(0)
浙公网安备 33010602011771号