'Handle responding to requests for the OPTIONS HTTP verb.'

def options(self, request, *args, **kwargs):

    response = HttpResponse()
    response['Allow'] = ',    '.join(self._allowed_methods())
    response['Content-Length'] = '0'
    return response
