title: python get form data how can this be?
body: <p>This is my js function for ajax form submit:</p>
  
  <pre><code>$('.sendButton').on('click', function(){
      $.post( "/send-form", $('#contactForm').serialize())
  }
  </code></pre>
  
  <p>This is my form:</p>
  
  <pre><code>&lt;form id="contactForm"&gt;
      &lt;input id="fastName" name="name" type="text" /&gt;
      &lt;input id="fastPhone" name="phone" type="text" /&gt;
      &lt;div class="sendButton"&gt;send&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this is my backend function to handle it, I am using python, flask</p>
  
  <pre><code>@app.route("/send-form", methods=['POST'])
  def send_form():
      data = request.data   
      print request.data
  </code></pre>
  
  <p>And in my console it prints data:</p>
  
  <pre><code>127.0.0.1 - - [22/Feb/2015 23:50:54] "POST /send-form HTTP/1.1" 200 - name=dfdsf&amp;phone=89920203725
  </code></pre>
  
  <p>But I did the same in another project and it prints nothing.
  Details are here:
  <a href="https://stackoverflow.com/questions/28661576/cant-get-post-ajax-request-data-python/28661744?noredirect=1#comment45618706_28661744">Can&#39;t get post ajax request data python</a>
  How can this be possible?</p>