title: Django Rest Framework remove csrf
body: <p>I know that there are answers regarding Django Rest Framework, but I couldn't find a solution to my problem.</p>
  
  <p>I have an application which has authentication and some functionality.
  I added a new app to it, which uses Django Rest Framework. I want to use the library only in this app. Also I want to make POST request, and I always receive this response:</p>
  
  <pre><code>{
      "detail": "CSRF Failed: CSRF token missing or incorrect."
  }
  </code></pre>
  
  <p>I have the following code:</p>
  
  <pre><code># urls.py
  from django.conf.urls import patterns, url
  
  
  urlpatterns = patterns(
      'api.views',
      url(r'^object/$', views.Object.as_view()),
  )
  
  # views.py
  from rest_framework.views import APIView
  from rest_framework.response import Response
  from django.views.decorators.csrf import csrf_exempt
  
  
  class Object(APIView):
  
      @csrf_exempt
      def post(self, request, format=None):
          return Response({'received data': request.data})
  </code></pre>
  
  <p>I want add the API without affecting the current application.
  So my questions is how can I disable CSRF only for this app ?</p>