Re: Serving mov file with Django

2014-12-27 Thread Tim Chase
On 2014-12-27 10:29, Hanley Hansen wrote: > I'm using the simple backend: > > SENDFILE_BACKEND = 'sendfile.backends.xsendfile' Your initial email mentions running Apache. Are you seeing this on an Apache server, or are you seeing it on the development server? Also, how are you connecting Django

Re: Serving mov file with Django

2014-12-27 Thread Hanley Hansen
No it does the same thing. On Saturday, December 27, 2014 2:09:15 PM UTC-5, Tim Chase wrote: > > On 2014-12-27 10:29, Hanley Hansen wrote: > > That makes sense. I've tried using sendfile but i'm not getting the > > behavior I expect. > > > > return sendfile(request, path, attachment=True) > >

Re: Serving mov file with Django

2014-12-27 Thread Tim Chase
On 2014-12-27 10:29, Hanley Hansen wrote: > That makes sense. I've tried using sendfile but i'm not getting the > behavior I expect. > > return sendfile(request, path, attachment=True) Does it do what you want if you remove the "attachment=True"? -tkc -- You received this message because yo

Re: Serving mov file with Django

2014-12-27 Thread Hanley Hansen
That makes sense. I've tried using sendfile but i'm not getting the behavior I expect. I'm using the simple backend: SENDFILE_BACKEND = 'sendfile.backends.xsendfile' And i'm sending the file like this: project_path = os.path.dirname(__file__) path = os.path.join(project_path, "..", "songs", so

Re: Serving mov file with Django

2014-12-27 Thread Tim Chase
On 2014-12-27 08:00, Hanley Hansen wrote: > I want to serve an mov file on the file system with Django the way > Apache would. IBe managed to serve the file as a download but I'm > looking to stream it so it plays in browser. I want to avoid > setting up a alias in Apache. Though it's a static file

Serving mov file with Django

2014-12-27 Thread Hanley Hansen
I want to serve an mov file on the file system with Django the way Apache would. IBe managed to serve the file as a download but I'm looking to stream it so it plays in browser. I want to avoid setting up a alias in Apache. Though it's a static file I need to stream it securely based on the user