Django

Code

Changeset 260

Show
Ignore:
Timestamp:
07/20/05 20:48:59 (3 years ago)
Author:
adrian
Message:

Added 'Serving media files' to docs/modpython.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/modpython.txt

    r223 r260  
    7575.. _mod_perl: http://perl.apache.org/ 
    7676.. _mod_python documentation: http://modpython.org/live/current/doc-html/directives.html 
     77 
     78Serving media files 
     79=================== 
     80 
     81Django doesn't serve media files itself. It'd be inefficient to flow media 
     82files through a (relatively) complex framework when much, much more well-tuned 
     83solutions are better. 
     84 
     85We recommend using a separate Web server for serving media. Here are some good 
     86choices: 
     87 
     88* lighttpd_ 
     89* TUX_ 
     90* A stripped-down version of Apache_ 
     91 
     92If, however, you have no option but to serve media files on the same Apache 
     93``VirtualHost`` as Django, here's how you can turn off mod_python for a 
     94particular part of the site:: 
     95 
     96    <Location "/media/"> 
     97        SetHandler None 
     98    </Location> 
     99 
     100Just change ``Location`` to the root URL of your media files. 
     101 
     102.. _lighttpd: http://www.lighttpd.net/ 
     103.. _TUX: http://en.wikipedia.org/wiki/TUX_web_server 
     104.. _Apache: http://httpd.apache.org/