Changeset 1123
- Timestamp:
- 11/07/05 08:39:13 (3 years ago)
- Files:
-
- django/trunk/docs/install.txt (modified) (1 diff)
- django/trunk/docs/modpython.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/install.txt
r849 r1123 16 16 the life of an Apache process, which leads to significant performance gains 17 17 over other server arrangements. Make sure you have Apache installed, with the 18 mod_python module activated. 18 mod_python module activated. Django requires Apache 2.x and mod_python 3.x. 19 19 20 20 See `How to use Django with mod_python`_ for information on how to configure django/trunk/docs/modpython.txt
r948 r1123 10 10 the life of an Apache process, which leads to significant performance gains over 11 11 other server arrangements. 12 13 Django requires Apache 2.x and mod_python 3.x. 12 14 13 15 .. _Apache: http://httpd.apache.org/ … … 130 132 </Location> 131 133 132 Just change ``Location`` to the root URL of your media files. 134 Just change ``Location`` to the root URL of your media files. You can also use 135 ``<LocationMatch>`` to match a regular expression. 136 137 This example sets up Django at the site root but explicitly disables Django for 138 the ``media`` subdirectory and any URL that ends with ``.jpg``, ``.gif`` or 139 ``.png``:: 140 141 <Location "/"> 142 SetHandler python-program 143 PythonHandler django.core.handlers.modpython 144 SetEnv DJANGO_SETTINGS_MODULE myproject.settings 145 </Location> 146 147 <Location "media"> 148 SetHandler None 149 </Location> 150 151 <LocationMatch "\.(jpg|gif|png)$"> 152 SetHandler None 153 </Location> 133 154 134 155 Note that the Django development server automagically serves admin media files,
