lighttpd - MemoryError with Django while serving a movie file -


in django application, list contents of directory contains movies (of around 400 mb). when try play movie in browser, memoryerror. have movie content inside "media" folder have marked serve statically.

i believe movie should have been served directly through web server without passing request django. there error in configuration or there whole different solution available serving movies in case.

i using lighttpd django , fcgi.

thanks.

you running out of memory because read whole file in memory & buffer before serving it. remove static url config django urls.py , configure url served lighthttpd.

but best way movies of size best served streaming. take @ media streaming server , see if helps you. may you. streaming movies flowplayer , lighthttpd

--sai


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -