On Thu, Sep 30, 2010 at 1:52 PM, Xavier Ordoquy <xordo...@linovia.com> wrote:
> Hi,
>
> Although I haven't done it, the following link may give you a good overview 
> of how to do it:
> http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/
>
> Regards,
> Xavier.
>
> Le 30 sept. 2010 à 13:34, Thomas Weholt a écrit :
>
>> On Thu, Sep 30, 2010 at 1:20 PM, Stodge <sto...@gmail.com> wrote:
>>> Is anyone aware of a Django app that lets you upload media files (not
>>> necessarily in the admin site) but serves them through a view instead
>>> of as static files via the web server? I need to control access to the
>>> media using permissions. Thanks
>>
>> Serving media using views are very inefficient, but I`m facing the
>> same problem; how to serve media using better suited servers like
>> nginx for media but still having some way of checking
>> permissions/authentication etc. ??
>>
>> I`m working on a project similar to Windows Home Server, where users
>> can upload and backup their media and access it through a web
>> interface. Serving static media using django was terrible and using
>> nginx was incredibly fast, but I lost all access control to the static
>> media.
>>
>> Any help on this subject would be highly appreciated.

This might help. Haven`t tested it: http://djangosnippets.org/snippets/491/

-- 
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