Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since I was looking for some more in-depth answers, I decided to research the issue myself in depth. Please let me know if I've misunderstood anything.</p> <p>Some general recommendation are to use a separate webserver for handling media. By separate, I mean a webserver which is not running Django. This server can be for instance:</p> <ul> <li>Lighttpd (Lighty)</li> <li>Nginx (EngineX)</li> <li>Or some other light-weight server</li> </ul> <p>Then, for Django, you can go down different paths. You can either:</p> <ul> <li><p>Serve Django via <strong>Apache</strong> and:</p> <ul> <li><p><strong>mod_python</strong></p> <p>This is the stable and recommended/well documented way. Cons: uses a lot of memory.</p></li> <li><p><strong>mod_wsgi</strong></p> <p>From what I understand, mod_wsgi is a newer alternative. It appears to be faster and easier on resources.</p></li> <li><p><strong>mod_fastcgi</strong></p> <p>When using FastCGI you are delegating the serving of Django to another process. Since mod_python includes a python interpreter in every request it uses a lot of memory. This is a way to bypass that problem. Also there is some security concerns.</p> <p>What you do is that you start your Django FastCGI server in a separate process and then configures apache via rewrites to call this process when needed.</p></li> </ul></li> </ul> <p>Or you can:</p> <ul> <li><p>Serve Django <strong>without using Apache</strong> but with another server that supports FastCGI natively:</p> <p>(The documentation mentions that you can do this if you don't have any Apache specific needs. I guess the reason must be to save memory.)</p> <ul> <li><strong>Lighttpd</strong></li> </ul> <p>This is the server that runs Youtube. It seems fast and easy to use, however i've seen reports on memoryleaks.</p> <ul> <li><strong>nginx</strong></li> </ul> <p>I've seen benchmarks claiming that this server is even faster than lighttpd. It's mostly documented in Russian though.</p></li> </ul> <p>Another thing, due to limitations in Python your server should be running in forked mode, not threaded.</p> <p>So this is my current research, but I want more opinions and experiences.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload