Changeset 1124
- Timestamp:
- 11/07/05 08:47:29 (3 years ago)
- Files:
-
- django/trunk/docs/modpython.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/modpython.txt
r1123 r1124 3 3 ================================= 4 4 5 `Apache`_ with `mod_python`_ currently is the preferred setup for using Django5 Apache_ with `mod_python`_ currently is the preferred setup for using Django 6 6 on a production server. 7 7 … … 113 113 =================== 114 114 115 Django doesn't serve media files itself. It'd be inefficient to flow media 116 files through a (relatively) complex framework when much, much more well-tuned 117 solutions are better. 115 Django doesn't serve media files itself; it leaves that job to whichever Web 116 server you choose. 118 117 119 We recommend using a separate Web server for serving media. Here are some good120 choices:118 We recommend using a separate Web server -- i.e., one that's not also running 119 Django -- for serving media. Here are some good choices: 121 120 122 121 * lighttpd_ … … 153 152 </Location> 154 153 155 Note that the Django development server automagically serves admin media files,156 but this is not the case when you use any other server arrangement.157 154 158 155 .. _lighttpd: http://www.lighttpd.net/ 159 156 .. _TUX: http://en.wikipedia.org/wiki/TUX_web_server 160 157 .. _Apache: http://httpd.apache.org/ 158 159 Serving the admin files 160 ======================= 161 162 Note that the Django development server automagically serves admin media files, 163 but this is not the case when you use any other server arrangement. You're 164 responsible for setting up Apache, or whichever media server you're using, to 165 serve the admin files. 166 167 The admin files live in (``django/contrib/admin/media``) of the Django 168 distribution. 169 170 Here are two recommended approaches: 171 172 1. Create a symbolic link to the admin media files from within your 173 document root. This way, all of your Django-related files -- code 174 **and** templates -- stay in one place, and you'll still be able to 175 ``svn update`` your code to get the latest admin templates, if they 176 change. 177 2. Or, copy the admin media files so that they live within your document 178 root.
