0
私は/ statistics/idにいます。オブジェクトhtmlのFlaskリソース
私は私のフラスコビューでリソースを持っている:
@app.route('/statistics2/<int:id>', methods=['GET', 'POST']):
quotation_title = db.get_quotation_by_session_parameter(id, 'number_questions')
return render_template('statistics2.html', quotation_title = quotation_title)
私は私のオブジェクトのhtmlタグで、このリソースを呼びたいです。
私はそれを行う:データで
<object id="content" type="text/html" width="100%" height="100%" data="statistics" ></object>
は、私は統計/ IDを示したいが、私は、私は例えば電流id
を取得できるかわからない属性:ID 6で私は/ statistics/6にいて、データ属性statistics2/6に自分のオブジェクトhtmlを表示したいと思います。
私はそれをどのように行うことができますか?
ありがとうございました。