Re: making an http request internally

2014-10-17 Thread Collin Anderson
> > 1) If I simply call the view function obtained from resolve(), it will be > executed without middleware. I still want all the usual middleware > processing to occur though. > Undocumented, unsupported, but this might work: from myproject import wsgi response = wsgi.application.get_response(r

Re: making an http request internally

2014-10-17 Thread Erik Cederstrand
> Den 17/10/2014 kl. 06.02 skrev jus...@fanout.io: > > I am writing a middleware class that needs to be able to make HTTP requests > to the application as part of it's processing. I'd like to be able to do this > internal to the Django app if possible, rather than having to make external > requ

making an http request internally

2014-10-17 Thread justin
Hey list, I am writing a middleware class that needs to be able to make HTTP requests to the application as part of it's processing. I'd like to be able to do this internal to the Django app if possible, rather than having to make external requests to the webserver hosting the Django app. I've