Hi Ian,
On Wed, Jun 16, 2010 at 4:11 PM, Ian McDowall wrote:
> Cool. That is a clever way to subvert (I don't mean this negatively)
> the response generation. I do have a couple of comments:
:-) Thanks
> 1) It relies on the response being sent to the client as it is
> generated and not buffered
Hi Dmitry, hi Ian,
thanks for the help.
I got it to work. Here is what I am doing.
Django gets a request for "/data.json". A view function is called.
This is my function:
def data(request):
return HttpResponse(subsampling(), mimetype='application/javascript')
subsampling() is an iterator
2 matches
Mail list logo