Flask 405 errors

<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 test program when the local project encountered because of this provision may be your route ( 'url') less the second argument, for example, you use post way or acquisition, but did not declare post or unregistered app

solution:

  1. Check the route in methods;
  2. Check whether the registered route;

Guess you like

Origin www.cnblogs.com/benjieqiang/p/11404042.html
405