Как правильно позвонить в url_for и указать параметры пути
/students
/students/<int:id>
SAMER SAEID
/students
/students/<int:id>
<a href="{{ url_for('student_by_id', id=student.id) }}">{{ student.id }}</a>
@application.route("/students/<int:id>", methods=["GET", "POST"])
def student_by_id(id):
return {"student": id}
@application.route("/students")
def all_students():
return {"students": "all"}