title: How to store data from ajax with webapp2(python)
body: <p>I want to receive data from ajax, but I got "None" as my variable</p>
  
  <pre class="lang-py prettyprint-override"><code>class update(webapp2.RequestHandler):
      def post(self):
          print("data",self.request.POST.get('data'))
  
  app = webapp2.WSGIApplication([
   ('/update', update)
  ], debug=True)
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>   data= 3;
  $.ajax({
      url: "/update",
      data: data, //data=3
      type: "POST",
      success: function( xml ) {
          alert( "It worked!" );
          },
  });
  </code></pre>
  
  <p>i got: ('data', '') as result when i expected: "data '3'"</p>
  
  <p>Edit: if possible, please keep the answer to just one line: like:
  print("data",self.request.POST.get('data'))</p>