On Mon, Nov 23, 2009 at 12:18 PM, Adrián Ribao <ari...@gmail.com> wrote:
> The problem is that the files are at least 400Mb and some of them are
> nearly 1Gb. Using this view is inefficient since all the content is
> loaded into memory and it kills the server:
>
> .......
>
> How could I solve this problem?


keep your views doing all the needed checking; but replace the data
serving itself (everything from "f = open(..." until "return
response")  with an empty response that just sets the headers to make
your front web server do the serving itself.  Apache, lighttpd and
nginx (at least) have this capability, but using different headers.

-- 
Javier

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to