On Dec 25, 2010, at 12:16 AM, 93-interactive wrote:
> The reason why i don't want to have the files in the web root is, that
> there should be
> as user management. certain django users are allowed only to view
> certain videos.

While you can make this work, you generally do not want an entire Python 
interpreter sitting around in memory just copying bytes from a file to the web 
server.  It's expensive, and a poor use of resources.

I'd strongly encourage you to look at mod_xsendfile (if you are using Apache), 
or the equivalent functionality in lighttpd.  You can maintain full control 
over who gets to see what videos, without having to tie up a Python/Django 
instance just doing I/O copies.

--
-- Christophe Pettus
   x...@thebuild.com

-- 
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=en.

Reply via email to