title: Redirect after post in views.py django rest framework
body: <p>I'm trying to figure out how to redirect to a simple html response page after post in Django rest framework application.</p>
  
  <p>this is how model looks like in web: </p>
  
  <p>Form for file upload:</p>
  
  <p><a href="https://i.stack.imgur.com/sVZEm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sVZEm.jpg" alt="form for file upload"></a>
  <p></p>
  
  <p>And after click on post button I have code in <strong>views.py</strong> that should redirect it on simple html but instead it stays on same page with empty queryset results and I don't know what I'm I doing wrong?</p>
  
  <pre><code>from rest_framework import viewsets
  from api.models import UploadImage
  from api.serializers import UploadedImageSerializer
  from rest_framework import  permissions
  from rest_framework.parsers import MultiPartParser,FormParser
  from sqlite_queries import user_ips
  
  class FileUploadViewSet(viewsets.ModelViewSet):
      #create queryset view
      permission_classes = (permissions.IsAuthenticated,)
      queryset = UploadImage.objects.all()
      serializer_class = UploadedImageSerializer
      parser_classes = (MultiPartParser, FormParser,)
  
      #after post action get this
      def perform_create(self, serializer):
          #grab request
          image_name = self.request.data['image']
          meta_data = self.request.META
          username = self.request.user
          REMOTE_ADDR = meta_data['REMOTE_ADDR']
  
          #check user status, how many ip's he had over last 24 hours
          user_status = user_ips(username)
  
          #if user has more than allowed redirect to html page
          if user_status == 400:
              print ("how to redirect here?")
              #return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
              #return HttpResponseRedirect("limit.html")
  
          #if user iz valid continue with upload
          serializer.save(user = username, meta_data= meta_data,remote_ip=REMOTE_ADDR)
  </code></pre>