title: Django Rest API POST issues
body: <p>I'm trying to build a very simple REST API in Django 1.8 with Django REST Framework in Visual Studio, in which I want to have a single service method to process a JSON, but I can't seem to make a POST:</p>
  
  <p>I'm trying to send this simple JSON through Postman, just as a test:</p>
  
  <pre><code>{
     "foo":"bar"
  }
  </code></pre>
  
  <p>with the header:</p>
  
  <pre><code>Content-Type: application/json
  </code></pre>
  
  <p>Here's my method:</p>
  
  <pre><code>@csrf_exempt
  @api_view(['POST'])
  def test(request):
      data = request.data
      return HttpResponse(status=200)
  </code></pre>
  
  <p>But my problem is that request.data is empty. And if instead I try to access request.body, I get </p>
  
  <p>You cannot access body after reading from request's data stream.</p>
  
  <p>Any ideas what could be the issue here?</p>