Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0500321a4be08ac2a1b27ac15c4194986610a39a 1 parent b2cb66b
@adrianholovaty adrianholovaty authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 docs/modpython.txt
28 docs/modpython.txt
@@ -74,3 +74,31 @@ revoke your Django privileges.
.. _mod_perl:
.. _mod_python documentation:
+Serving media files
+Django doesn't serve media files itself. It'd be inefficient to flow media
+files through a (relatively) complex framework when much, much more well-tuned
+solutions are better.
+We recommend using a separate Web server for serving media. Here are some good
+* lighttpd_
+* TUX_
+* A stripped-down version of Apache_
+If, however, you have no option but to serve media files on the same Apache
+``VirtualHost`` as Django, here's how you can turn off mod_python for a
+particular part of the site::
+ <Location "/media/">
+ SetHandler None
+ </Location>
+Just change ``Location`` to the root URL of your media files.
+.. _lighttpd:
+.. _TUX:
+.. _Apache:

0 comments on commit 0500321

Please sign in to comment.
Something went wrong with that request. Please try again.