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 that acts as a document repository, with the only difference 
that the file is not uploaded, but produced by the server.

I don't see how I could use the xlsxwriter object in the way it is 
described here https://docs.djangoproject.com/en/1.5/howto/outputting-pdf/- how 
could I pass the httpresponse object to xlsxWriter?
(Maybe I have not yet found how this might work - but it is not what I need 
anyways...)

Thomas

Am Mittwoch, 2. Oktober 2013 02:11:21 UTC+2 schrieb Russell Keith-Magee:
>
>
> On Tue, Oct 1, 2013 at 9:49 PM, DJ-Tom <event...@gmail.com 
> <javascript:>>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 if there was a portable way of managing the 
>> file system location and web request url in a way so that I don't have to 
>> change settings between the development and production server.
>>
>> Is this -> https://docs.djangoproject.com/en/1.5/topics/files/ the way 
>> to go?
>>
>> If they're sever generated, why do they need to hit the file system at 
> all? 
>
> The following example in the docs:
>
> https://docs.djangoproject.com/en/1.5/howto/outputting-pdf/
>
> shows how you can stream a report directly to the end user. The example 
> uses reportlab to produce a PDF, but the same approach will work for a tool 
> writing to a different format.
>
> Yours,
> Russ Magee %-)
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/93413618-01d4-4fc0-a4d0-94fa67efe371%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to