Well the response does not seem to contain the audio file, to the best of my
knowledge Django does not implement X-Accel-Redirect, are you running all this
on the same machine? Maybe your browser is getting the file ? Seems unlikely.
Have you tried something like ‘curl’ to make the request in de
yes i am working on this code but i havnt wrote this code otherwise i
would not have required the explaination i guess.
and for your second question , i am not sure coz as you said it looked
like nginx directive , but i am running it on default wsgi server included
in django . so i am asking
You need to be a little more specific about what the context is, and what you
are observing, rather than just plastering up some code.
- Is this code in an app you are working with ? Did you write this code ?
- Is the audio file being served by your application through the default wsgi
server
but i am not running ny nginx server , m just running default wsgi server
with django ,and files are still served file ,can you explain how that is
happening?
On Wednesday, April 29, 2015 at 5:10:56 PM UTC+5:30, François Schiettecatte
wrote:
>
> I found this page which was pretty clear I think
I found this page which was pretty clear I think:
http://wiki.nginx.org/XSendfile
Looks like an nginx directive to serve a file as the content of the response.
F.
> On Apr 29, 2015, at 7:28 AM, Anubhav Kaushik wrote:
>
> yes francois ,when i searched the term ,all i got was links re
yes francois ,when i searched the term ,all i got was links related to
nginx.
On Wednesday, April 29, 2015 at 4:55:58 PM UTC+5:30, François Schiettecatte
wrote:
>
> Which part do you mean? The 'X-Accel-Redirect’ ?
>
> François
>
> > On Apr 29, 2015, at 6:08 AM, Anubhav Kaushik > wrote:
> >
Which part do you mean? The 'X-Accel-Redirect’ ?
François
> On Apr 29, 2015, at 6:08 AM, Anubhav Kaushik wrote:
>
> response = HttpResponse()
>
> protected = settings.PROTECTED_AUDIO_ROOT + path
>
> logger.info('Protected path: %s', protected)
>
> response["X-Accel-Redir
7 matches
Mail list logo