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?
François Schiettecatte
未讀,
2015年4月29日 上午8:05:262015/4/29
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
登入以檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:django...@googlegroups.com
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 included in django?
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 how wsgi server is serving what a nginx is supposed to serve?
François Schiettecatte
未讀,
2015年4月29日 上午9:47:072015/4/29
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
登入以檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:django...@googlegroups.com
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 debug mode to see what is coming over the wire back from Django?