Thanks - that's what I was looking for.
But how do I send the browser back to a specific page after serving the
download?
Am Donnerstag, 3. Oktober 2013 10:54:51 UTC+2 schrieb John McNamara:
>
> Hi,
>
> Here is an example of using XlsxWriter from SimpleHTTPServer or Django. It
> probably
Hi,
Here is an example of using XlsxWriter from SimpleHTTPServer or Django. It
probably doesn't do 100% of what you are looking for but it may help anyway.
https://xlsxwriter.readthedocs.org/en/latest/example_http_server.html
John
--
You received this message because you are subscribed
I have now created a test view that basically does what I want:
def reporting_new(request):
output = StringIO.StringIO()
book = Workbook(output)
sheet = book.add_worksheet('test')
sheet.write(0, 0, 'Hello, world!')
book.close()
# construct response
output.seek(0)
The report can't be reporduced later on - as the data is constantly
changing, so I need to store the result.
Storing the data on which the report is based is very complex and would be
too expensive regarding storage space just for this purpose.
But I also have now found how to use StringIO
I tried to return a generated file but it seems that the Admin interface
(or middleware?) is capturing my response.
I get a brief blank page and then the Admin interface again without eve
getting the download prompt.
My last attempt looked like this:
fname = 'ccd-'+self.ct_id+'.xsd'
Hi
+1 on this except that I use xlrd and xlwt to read and write Excel files. To
generate the excel file I just generate a list of lists (an array effectively)
and pass that through a function which walks the list and generates the excel
worksheet that I write to a StringIO so it can be
Hi Thomas,
I'm doing exactly this - allowing users to download (graphically simple)
XLSx files from my web app, it also needs to be available for download
weeks later.
As Russell pointed out, you don't need to store data on this if you have
a way of getting the same set of data later, you can
On Wed, Oct 2, 2013 at 2:33 PM, DJ-Tom wrote:
> Hi,
>
> this is quite easy to answer - those reports need to be archived - users
> must be able to download them days or weeks later.
>
> So I will create a record in a database for each report that is created so
> users can
Hi,
this is quite easy to answer - those reports need to be archived - users
must be able to download them days or weeks later.
So I will create a record in a database for each report that is created so
users can access it later - maybe this can be seen as "uploading" a file to
the server
On Tue, Oct 1, 2013 at 9:49 PM, DJ-Tom wrote:
> Hi,
>
> I need to create database report downloads in Excel format (via
> xlsxwriter) and I'm wondering if there is any standard or best practice as
> to where those downloads should be located.
>
> Especially helpful would be
Hi,
I need to create database report downloads in Excel format (via xlsxwriter)
and I'm wondering if there is any standard or best practice as to where
those downloads should be located.
Especially helpful would be if there was a portable way of managing the
file system location and web
11 matches
Mail list logo