title: Python Flask Get Data Attribute From Form
body: <p>Hopefully there is a very simple answer to this problem. I want to get data from a POST in flask that is not your standard textfield value. The trick to this is that I want to try and find a solution without using javascript, I could easily do that but Im attempting to only use python.</p>
  
  <p>This is not my specific example but instead a simplified one.</p>
  
  <p>I want to get the value of "data-status"</p>
  
  <pre><code>&lt;form action="/myurl/" method="post"&gt;
      &lt;div data-status="mydatahere" class="classname"&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Python</p>
  
  <pre><code>@app.route('/myurl/', methods=['POST'])
  def myurl():
      #python to get 'data-status' value here.
  </code></pre>
  
  <p>Thanks so much to anyone that can provide an answer.</p>