Flask view shows 400 error instead of template with form
问题 I\'m trying to display a page with a form, then add a Player to the database when the form is submitted. However, I can\'t view the form because the browser always shows a 400 Bad Request error. Other posts indicate that this could be because the name of the form input doesn\'t match the key I get from request.form , but all my keys match. Why do I get this error? <form method=\"post\"> {{ form.hidden_tag() }} <input name=\"name\"> <input name=\"available\"> <input type=\"submit\"> </form>