title: How do I post to Django using Axios?
body: <p>I'm moving from Jquery AJAX to Axios since I'm using ReactJS so I think it's cleaner, I am having some troubles posting a simple request to the server, the post method goes through my view but whenever I <code>print(request.POST)</code>, I have an empty queryset (<code>&lt;QueryDict: {}&gt;</code>).</p>
  <pre><code>axios({
    method: 'post',
    url: SITE_DOMAIN_NAME + '/my_url_name/',
    data: {
      'tes1':'test',
      'tes2':'test'
    },
    headers: {
      &quot;X-CSRFToken&quot;: CSRF_TOKEN, 
      &quot;content-type&quot;: &quot;application/json&quot;
    }
  }).then(function (response) {
    console.log(response)
  }).catch(function (error) {
    console.log(error)
  });
  </code></pre>
  <p>Django view is a simple ClassBasedView.</p>
  <p>What am I doing wrong?</p>