Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Robert Coup
Robert Coup wrote: > Carl Karsten wrote: > >> Malcolm Tredinnick wrote: >> >> >>> I don't know what htmldoc does, but if it tries to access the url you >>> give it, you can't do that. The dev server is single threaded. It is >>> already serving one request (running your view), so it can

Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Robert Coup
Carl Karsten wrote: > Malcolm Tredinnick wrote: > >> I don't know what htmldoc does, but if it tries to access the url you >> give it, you can't do that. The dev server is single threaded. It is >> already serving one request (running your view), so it can't serve the >> second parallel access

Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Fri, 2007-07-06 at 07:18 -0700, Filippo Santovito wrote: >> Hi all, >> I'm having a strange problem with a view. >> Its code runs well if I test if in the shell but seems to block the >> dev server: >> >> #django 0.96 >> def html2pdf(request, url = None ): >> fro

Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Malcolm Tredinnick
On Fri, 2007-07-06 at 07:18 -0700, Filippo Santovito wrote: > Hi all, > I'm having a strange problem with a view. > Its code runs well if I test if in the shell but seems to block the > dev server: > > #django 0.96 > def html2pdf(request, url = None ): > from django.http import HttpResponse >

problem with django dev server and subprocess.Popen

2007-07-06 Thread Filippo Santovito
Hi all, I'm having a strange problem with a view. Its code runs well if I test if in the shell but seems to block the dev server: #django 0.96 def html2pdf(request, url = None ): from django.http import HttpResponse import subprocess response = HttpResponse(mimetype='application/pdf'