title: Post successful but response is an error on front end
body: <p>I am posting data through <code>127.0.0.8000/post/</code>. My post is of course successful cause I am able to see what I posted in the base URL of <code>127.0.0.8000</code> successfully but I get the following response on the Django front end.</p>
  <pre><code>AssertionError at /post/
  Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `&lt;class 'NoneType'&gt;`
  </code></pre>
  <p>In VS Code I get the following errors in terminal</p>
  <pre><code>Internal Server Error: /post/
  Traceback (most recent call last):
    File &quot;C:\Users\Ahmed\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py&quot;, line 47, in inner
      response = get_response(request)
    File &quot;C:\Users\Ahmed\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py&quot;, line 181, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File &quot;C:\Users\Ahmed\AppData\Local\Programs\Python\Python310\lib\site-packages\django\views\decorators\csrf.py&quot;, line 54, in wrapped_view
      return view_func(*args, **kwargs)
    File &quot;C:\Users\Ahmed\AppData\Local\Programs\Python\Python310\lib\site-packages\django\views\generic\base.py&quot;, line 69, in view
      return self.dispatch(request, *args, **kwargs)
    File &quot;C:\Users\Ahmed\AppData\Local\Programs\Python\Python310\lib\site-packages\rest_framework\views.py&quot;, line 511, in dispatch
      self.response = self.finalize_response(request, response, *args, **kwargs)
    File &quot;C:\Users\Ahmed\AppData\Local\Programs\Python\Python310\lib\site-packages\rest_framework\views.py&quot;, line 423, in finalize_response
      assert isinstance(response, HttpResponseBase), (
  AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `&lt;class 'NoneType'&gt;`
  [27/Feb/2022 16:22:13] &quot;POST /post/ HTTP/1.1&quot; 500 74030
  [27/Feb/2022 16:22:24] &quot;GET / HTTP/1.1&quot; 200 5799
  </code></pre>
  <p>My Views.Py is the following</p>
  <pre><code>@api_view(['GET'])
  def getData(request):
      queryset = Wallet.objects.all()
      serializer = WalletSerializer(queryset, many=True, context={'request': request})
      return Response(serializer.data)
  
  @api_view(['GET'])
  def getSingleData(request,pk):
      queryset = Wallet.objects.all(id=pk)
      serializer = WalletSerializer(queryset, many=False)
      return Response(serializer.data)
  
  @api_view(['POST'])
  def postData(request):
      serializer = WalletSerializer(data = request.data)
      if serializer.is_valid():
          serializer.save()
  </code></pre>
  <p><strong>P.S I am also unable to GET individual data through ID in the second method, it doesn't work</strong></p>