Python's Flask framework uses paginate paging to return 404?

< hr >

problem description

there is a form on the index page that queries email and returns the results to the page and pagination. After submitting the form, the result is indeed paginated, but clicking on any paging is a 404 error page.

what result do you expect?

The

index page submits the query form, then displays the results on the index page, and the results are paged correctly.

related codes

Source code: https://github.com/wedojava/e.

main/index.py :

127.0.0.1 - - [11/Dec/2018 12:44:51] "GET /index?page=2 HTTP/1.1" 404 -

the environmental background of the problems and what methods you have tried

  • Python version: 3.7.1
  • Flask version:1.0.2
  • Werkzeug version:0.14.1
Jan.27,2022

hello, I also have the same error. There is no problem in querying the first page and the second page, but from the second page, the search will report an error. Excuse me, have you solved it?

Menu