Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread queezy
rs@googlegroups.com> Sent: Thursday, April 05, 2007 12:15 PM Subject: Re: Django app serves PDFs but browser doesn't render them > > Thank you very much for this. > > Another thing to keep in mind with IE and PDFs is that IE often (but > not always) cannot correctly iden

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread queezy
just went on (finally!). I will put the http variable in >> where pdfbytes is found. >> >> Thanks Malcolm! >> >> Cheers! >> >> -Warren >> >> - Original Message - >> From: "Malcolm Tredinnick" <[EMAIL PROTECTED]> >&

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread [EMAIL PROTECTED]
; > > -Warren > > > - Original Message - > > From: "Malcolm Tredinnick" <[EMAIL PROTECTED]> > > To: <django-users@googlegroups.com> > > Sent: Wednesday, April 04, 2007 6:50 PM > > Subject: Re: Django app serves PDFs but browser doesn't render

Re: Django app serves PDFs but browser doesn't render them

2007-04-05 Thread Mike Axiak
> Cheers! > > -Warren > > - Original Message - > From: "Malcolm Tredinnick" <[EMAIL PROTECTED]> > To: <django-users@googlegroups.com> > Sent: Wednesday, April 04, 2007 6:50 PM > Subject: Re: Django app serves PDFs but browser doesn't render them

Re: Django app serves PDFs but browser doesn't render them

2007-04-04 Thread queezy
April 04, 2007 6:50 PM Subject: Re: Django app serves PDFs but browser doesn't render them > > On Wed, 2007-04-04 at 18:46 -0700, queezy wrote: >> Hi Malcolm! >> >> Actually I tried the following (and gave Ned credit for solving half of >> my >> problem): >>

Re: Django app serves PDFs but browser doesn't render them

2007-04-04 Thread queezy
om> Sent: Wednesday, April 04, 2007 6:50 PM Subject: Re: Django app serves PDFs but browser doesn't render them > > On Wed, 2007-04-04 at 18:46 -0700, queezy wrote: >> Hi Malcolm! >> >> Actually I tried the following (and gave Ned credit for solving half of >> my >

Re: Django app serves PDFs but browser doesn't render them

2007-04-04 Thread Malcolm Tredinnick
On Wed, 2007-04-04 at 18:46 -0700, queezy wrote: > Hi Malcolm! > > Actually I tried the following (and gave Ned credit for solving half of my > problem): > > from django.http import HttpResponse > from django.shortcuts import render_to_response > import urllib > > def front(request): >

Re: Django app serves PDFs but browser doesn't render them

2007-04-04 Thread queezy
at this stage. Sorry for any confusion. Cheers! -Warren - Original Message - From: "Malcolm Tredinnick" <[EMAIL PROTECTED]> To: <django-users@googlegroups.com> Sent: Wednesday, April 04, 2007 6:13 PM Subject: Re: Django app serves PDFs but browser doesn't render

Re: Django app serves PDFs but browser doesn't render them

2007-04-04 Thread Malcolm Tredinnick
On Wed, 2007-04-04 at 17:31 -0700, queezy wrote: > Hi! > > Sorry it took a while - I had to get the info from work. > > Renderer mode: Quirks mode > Cache source: Not cached > Encoding: UTF-8 > > The other stuff was blank. > > My view is as follows: > > == SNIP == > from

Re: Django app serves PDFs but browser doesn't render them

2007-04-04 Thread queezy
Message - From: "oggie rob" <[EMAIL PROTECTED]> To: "Django users" <django-users@googlegroups.com> Sent: Monday, April 02, 2007 9:03 PM Subject: Re: Django app serves PDFs but browser doesn't render them > > Ahh... botched post. > Anyway, check the

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread oggie rob
gt; > that Ned provided. > > > Thanks so much!! > > > -Warren > > > - Original Message ----- > > From: Ned Batchelder > > To: django-users@googlegroups.com > > Sent: Monday, April 02, 2007 6:50 PM > > Subject: Re: Django app serv

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread oggie rob
ess with this is in these lines that Ned > provided. > > Thanks so much!! > > -Warren > > - Original Message - > From: Ned Batchelder > To: django-users@googlegroups.com > Sent: Monday, April 02, 2007 6:50 PM > Subject: Re: Django app serves

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread queezy
that the secret to success with this is in these lines that Ned provided. Thanks so much!! -Warren - Original Message - From: Ned Batchelder To: django-users@googlegroups.com Sent: Monday, April 02, 2007 6:50 PM Subject: Re: Django app serves PDFs but browser doesn't render

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread queezy
@googlegroups.com Sent: Monday, April 02, 2007 6:50 PM Subject: Re: Django app serves PDFs but browser doesn't render them We serve PDFs, both in-browser, and out. Here the lines to set the type and disposition: response = HttpResponse(pdfbytes, mimetype='application/pdf') response

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread Ned Batchelder
We serve PDFs, both in-browser, and out. Here the lines to set the type and disposition: response = HttpResponse(pdfbytes, mimetype='application/pdf') response['Content-Disposition'] = 'attachment; filename=foo.pdf' return response Here pdfbytes are the actual bytes of the PDF

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread queezy
o: <django-users@googlegroups.com> Sent: Monday, April 02, 2007 6:35 PM Subject: Re: Django app serves PDFs but browser doesn't render them > > On Mon, 2007-04-02 at 18:02 -0700, queezy wrote: >> Hi All! >> >> We have a Django application that uses a form to allow users to se

Re: Django app serves PDFs but browser doesn't render them

2007-04-02 Thread Malcolm Tredinnick
On Mon, 2007-04-02 at 18:02 -0700, queezy wrote: > Hi All! > > We have a Django application that uses a form to allow users to select > offices and it sends them off to a pdf. At the present time we are using > FireFox on a Linux box and we are just using the Django loopback server for > the

Django app serves PDFs but browser doesn't render them

2007-04-02 Thread queezy
Hi All! We have a Django application that uses a form to allow users to select offices and it sends them off to a pdf. At the present time we are using FireFox on a Linux box and we are just using the Django loopback server for the time being. This means that we don't have a secondary, or