I used process_request and process_response functions in django middleware in order to log the requests before hitting the viewset. But, I get Internal Server Error. I don\'t
I fixed the issue. It's because the response object returned by process_response doesn't have actual response. I modified it to following and it worked.
class MyMiddleware():
def process_request( self, request ):
print "xxxxx"
return None
def process_response( self, request, response ):
print "xxxxx"
return response