title: Django-Rest-Framework AssertionError HTTPresponse Expected
body: <p>When i do the following command over Terminal using curl</p>
  
  <pre><code>curl -X POST http://myuser:mypassword@myweb.com:8000/call/make-call/ -d "tutor=1&amp;billed=1"
  </code></pre>
  
  <p>I get the following error</p>
  
  <blockquote>
    <p>AssertionError at /call/make-call/ Expected a <code>Response</code>,
    <code>HttpResponse</code> or <code>HttpStreamingResponse</code> to be returned from the
    view, but received a <code>&lt;type 'NoneType'&gt;</code></p>
  </blockquote>
  
  <p>My views.py is</p>
  
  <pre><code>@api_view(['GET', 'POST'])
  def startCall(request):
  
      if request.method == 'POST':
  
          serializer = startCallSerializer(data=request.DATA)
  
          if serializer.is_valid():
  
              serializer.save()
  
              return Response(serializer.data, status=status.HTTP_201_CREATED)
  
          else:
  
              return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  
  <p>my serializer.py is</p>
  
  <pre><code>class startCallSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = call
          fields = ('tutor', 'billed', 'rate', 'opentok_sessionid')
  </code></pre>
  
  <p>my urls.py is </p>
  
  <pre><code>urlpatterns = patterns(
      'api.views',
      url(r'^call/make-call/$','startCall', name='startCall'),
  )
  </code></pre>