Re: save as

2013-03-26 Thread Larry Martell
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

Re: save as

2013-03-26 Thread Larry Martell
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

Re: save as

2013-03-20 Thread Felipe Coelho
> > 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

Re: save as

2013-03-20 Thread Larry Martell
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

Re: save as

2013-03-20 Thread Felipe Prenholato
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

Re: save as

2013-03-20 Thread Larry Martell
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

Re: save as

2013-03-20 Thread Felipe Prenholato
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

Re: save as

2013-03-20 Thread Larry Martell
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

Re: save as

2013-03-20 Thread Tom Evans
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

Re: save as

2013-03-20 Thread Larry Martell
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 >> >>

Re: save as

2013-03-20 Thread Branko Majic
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

Re: save as

2013-03-19 Thread Larry Martell
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

Re: save as

2013-03-19 Thread Tim Chase
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

Re: Save as inline formset

2010-02-10 Thread Karen Tracey
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

Re: Save as new and files

2009-11-29 Thread Pawel Pilitowski
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

Re: Save as new and files

2009-11-27 Thread Tim Valenta
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

Re: Save as new and files

2009-11-27 Thread Pawel Pilitowski
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

Re: save as a new entry

2009-08-12 Thread Ali Rıza Keleş
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,

Re: save as a new entry

2009-08-12 Thread Daniel Roseman
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