<Response streamed[405 METHOD NOT ALLOWED]> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 Final//EN">
<title>405 MethodNot Allowed</title>
<h1>Method NotAllowed</h1>
<p>The method isnot allowed for the requested URL.</p>
本地測試Flask項目程序的時候遇到的,原因有可能是你的此條route('url')少了第二個參數,或者比如你使用post方式獲取,但是並沒有聲明post或者未注冊app
解決方案:
- 檢查路由里methods;
- 檢查是否注冊了路由;