Hello Dirk
thanks for your answer.
Now this is how it works for me on my deployment machine (centos/
django/python 2.4)
#===Code
def test_view(request):
path = get_full_path_x(request)
pdf = pisa.pisaDocument(StringIO.StringIO( html.encode
("ISO-8859-1")), result, path=path)
return HttpResponse(result.getvalue(), mimetype='application/pdf')
def get_full_path_x(request):
full_path = ('http', ('', 's')[request.is_secure()], '://',
request.META['HTTP_HOST'], request.path)
return ''.join(full_path)
#===Code
However on my development machine (Windows XP) this does not work.
I don't know if you know django but in developing the application is
running with an internal webserver (coming with django) running on
port 8000.
And here my django application definitly hangs. I have to kill the
python.exe process.
Does someone else have any hint on how to get that running in
development?
> >>>> the image src="/site_media/logo.jpg" in the html filehttp://
127.0.0.1:8000/apps/export/20/1is the path of the django