title: Using django message framework with rest_framework
body: <p>How can I have the django message framework work with the rest_framework?</p>
  
  <p>Here is my view</p>
  
  <pre><code>@api_view(['GET', 'POST'])
  def myview(request):
      if request.method == 'GET':
          #return a Response object
      else:
          #process post data
          messages.success(request, 'Success')
          return Response(response)
  </code></pre>
  
  <p>I encounter the following error</p>
  
  <pre><code>add_message() argument must be an HttpRequest object, not 'Request'
  </code></pre>
  
  <p>which is because the <code>rest_framework</code> does not use the normal <code>HttpRequest</code> object, used
  in django by default.</p>
  
  <p>How can I use messaging framework with rest framework?</p>