On Tue, Mar 26, 2013 at 6:48 AM, Larry Martell wrote:
> On Wed, Mar 20, 2013 at 6:26 PM, Felipe Coelho wrote:
>>> 2013/3/20 Larry Martell
>>>
>>>
>>> I'm not outputting any PDF. I have a zip file I want to download to
>>> the user's computer, and I also want my template rendered.
>>
>>
>> That m
On Wed, Mar 20, 2013 at 6:26 PM, Felipe Coelho wrote:
>> 2013/3/20 Larry Martell
>>
>>
>> I'm not outputting any PDF. I have a zip file I want to download to
>> the user's computer, and I also want my template rendered.
>
>
> That means you have should have two requests, possibly processed by two
>
> 2013/3/20 Larry Martell
> I'm not outputting any PDF. I have a zip file I want to download to
> the user's computer, and I also want my template rendered.
That means you have should have two requests, possibly processed by two
different views, which is what Felipe (the other one) is trying
On Wed, Mar 20, 2013 at 3:01 PM, Felipe Prenholato wrote:
> I mean, you output PDF.
> It's a simple view that output PDF, this view is called via ajax after page
> that show HTML loads.
I'm not outputting any PDF. I have a zip file I want to download to
the user's computer, and I also want my tem
I mean, you output PDF.
It's a simple view that output PDF, this view is called via ajax after page
that show HTML loads.
Felipe 'chronos' Prenholato.
Linux User nº 405489
Home page: http://devwithpassion.com | http://chronosbox.org/blog
GitHub: http://github.com/chronossc/ | Twitter: http://twitt
On Wed, Mar 20, 2013 at 2:27 PM, Felipe Prenholato wrote:
> When page loads (document.ready), do a ajax call to a view that returns PDF
> file.
How is a PDF file involved here?
> 2013/3/20 Larry Martell
>>
>> On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans
>> wrote:
>> > On Wed, Mar 20, 2013 at 11
When page loads (document.ready), do a ajax call to a view that returns PDF
file.
Felipe 'chronos' Prenholato.
Linux User nº 405489
Home page: http://devwithpassion.com | http://chronosbox.org/blog
GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc
2013/3/20 Larry Marte
On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans wrote:
> On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell
> wrote:
>> Yes, I have convinced them to not require this. Now my issue is how to
>> cause a file to be saved and to also render a template. When I return
>> this:
>>
>> response = HttpRe
On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell wrote:
> Yes, I have convinced them to not require this. Now my issue is how to
> cause a file to be saved and to also render a template. When I return
> this:
>
> response = HttpResponse('This is what I want to save')
> response['Con
On Wed, Mar 20, 2013 at 2:50 AM, Branko Majic wrote:
> On Tue, 19 Mar 2013 19:27:33 -0600
> Larry Martell wrote:
>
>> On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase
>> wrote:
>> > On 2013-03-19 18:42, Larry Martell wrote:
>> >> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which
>> >>
On Tue, 19 Mar 2013 19:27:33 -0600
Larry Martell wrote:
> On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase
> wrote:
> > On 2013-03-19 18:42, Larry Martell wrote:
> >> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which
> >> says to use the Content-disposition header to trigger the save a
On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase
wrote:
> On 2013-03-19 18:42, Larry Martell wrote:
>> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which
>> says to use the Content-disposition header to trigger the save as.
>> I've done this, but I don't get a save as dialog box. The file
On 2013-03-19 18:42, Larry Martell wrote:
> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which
> says to use the Content-disposition header to trigger the save as.
> I've done this, but I don't get a save as dialog box. The file is
> just downloaded to a download dir with the name I
On Wed, Feb 10, 2010 at 7:45 AM, oiad wrote:
> Hi. If I have a couple of models like these:
>
> class Poll(models.Model):
>question = models.CharField(max_length=200, unique = True)
>pub_date = models.DateTimeField('date published')
>
> class Choice(models.Model):
>poll = models.Forei
Hi Tim,
Thanks for the response.
My Test model:
class Test(models.Model):
text = models.CharField(max_length=50)
image = models.ImageField(upload_to="upload/test_images/",
blank=True, null=True)
#also tried with FileField
def __unicode__(self):
return self.text
c
Does the newly created model lack a path entirely, or does it have a
path that points to a false location? In other words, is the right
path making it to the database, yet not to the filesystem to copy the
file? Also, since you didn't mention anything about it, I would
remind you that a proper te
Hey,
Mainly I would like to know what the intended behavior of "save as
new" is supposed to be, if it is supposed to copy the files, I will
look further into why its not working for me.
I was assuming that it would, and didn't find anything in the
documentation to the contrary. If it is the
On Wed, 2009-08-12 at 15:55 -0700, Daniel Roseman wrote:
> On Aug 12, 10:40 pm, Ali Rıza KELEŞ wrote:
> > In admin interface, in editing section of a model, I need a button to
> > save as a new entry. There are four button at the end of the editing
> > form.
> > - Delete,
> > - Save and Add New,
On Aug 12, 10:40 pm, Ali Rıza KELEŞ wrote:
> In admin interface, in editing section of a model, I need a button to
> save as a new entry. There are four button at the end of the editing
> form.
> - Delete,
> - Save and Add New,
> - Save And Continue Editing,
> - Save.
>
> I want to save the curre
19 matches
Mail list logo