'Setup the django+twisted resource.
Args:
pool (ThreadPool): The twisted threadpool.'

def __init__(self, pool):

    self.pool = pool
    self._echo_log = True
    self._pending_requests = {}
    resource.Resource.__init__(self)
    self.wsgi_resource = WSGIResource(reactor, pool, WSGIHandler())
