title: How to insert POST data into Django model using rest-frameWork
body: <p>I am trying to POST data to my Django app using Django rest-frameWork...</p>
  
  <p>My view is : </p>
  
  <pre><code>@csrf_view_exempt
  class subscriptionsList(APIView):
  
      def post(self, request, format=None):
          key = self.request.QUERY_PARAMS.get('appKey', None)
          keyData = app.objects.filter(appKey=key).exists()         
  
          if keyData == True:
              serializer = PostSubscriptionDetailSerializer(data=request.DATA)
              if serializer.is_valid():
                  serializer.save()
                  return Response(serializer.data, status=status.HTTP_201_CREATED)
              return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  
  <p>urls.py : 
   <code>url(r'^subscribe/$',subscriptionsList,name='subscriptions-list'),</code></p>
  
  <p>serializer.py</p>
  
  <pre><code>class PostSubscriptionDetailSerializer(serializers.ModelSerializer):
      class Meta:
          model = subscriptions
          fields = ('subAppName','subStoreName','subTagName','emailID')
  </code></pre>
  
  <p>Can someone tell me how to POST data using Django REST-frameWork...</p>