according to my requirements, I need to query the classified data according to the classified id, but then I want to paginate my classified data, so I define the route:
@home.route("/list/<int:id>/<int:page>/")
then my access route:
http://127.0.0.1:5000/list/1/1/
error:
werkzeug.routing.BuildError: Could not build url for endpoint "home.list" with values [" page"]. Did you forget to specify values ["id"]?
but the strange thing is that if I visit:
http://127.0.0.1:5000/list/2/1/
can be accessed successfully. I wonder what went wrong. In addition, the routing format of my url_for is given:
{{ url_for("home.list",id=v.id,page=1) }}