The browser (or proxy) sent a request that this server could not understand.”
Подскажите, будьте добры, в чем проблема?
Вот view:
<h2>Library:</h2> <form action="{{ url_for('find_in_lib') }}" method=get class=find-in-lib> <fieldset> <h3>Find book:</h3> <dl> <dt>Title: <dd><input type=text size=30 name=find_book_title> <dt>Author: <dd><input type=text size=30 name=find_author_name> <dd><input type=submit value=Find> </dl> </fieldset> </form>
@app.route('/find_in_lib', methods=['GET']) def find_in_lib(): db = get_db() author_name = request.form['find_author_name'] book_title = request.form['find_book_title'] flash(author_name) flash(book_title)
Все, после нажатия Find вывалиывается ошибка…