Флэста Получите данные из формы HTML

from flask import Flask,url_for,request
''' html form:
<form action="{{ url_for('posted')}}" method="post">
     <input id="post" placeholder="enter post" type="text" name="post">
     <button type="submit">submit</button>
 </form>
'''
@app.route('/posted', methods=['POST'])
def posted():
  data = request.form['post']
  return '<h1>'+data+'</h1>'
myrccar the man