def _local_server_get(url, session):
 request = HttpRequest()
 request.method = 'GET'
 request.session = session
 (view, args, kwargs) = resolve(url)
 response = view(request, *args, **kwargs)
 return response.content

def _local_server_get ( url , session ) : request = HttpRequest ( ) request . method = 'GET' request . session = session ( view , args , kwargs ) = resolve ( url ) response = view ( request , * args , ** kwargs ) return response . content
simulate a server-server get request for an in-process api .