Search_page. Py defines two functions, a GET, a POST
The GET function is to render a homepage with a search box, completely no problem, the following figure
And the problem in the POST here, defines the redirect to searchresult view function, the function view rendering resultpage. HTML,
When you click the search button after the success of the post data, the background show 302 successful, but I don't have any reaction, front-end
Registered a blueprint, there is no problem, this is the view of the POST of search_page function,
The search results view function and the result of the background
Distress more than a day, a great god