Django

Code

Changeset 1123

Show
Ignore:
Timestamp:
11/07/05 08:39:13 (3 years ago)
Author:
adrian
Message:

Updated install.txt and modpython.txt to note required Apache and mod_python versions. Also gave full example for Apache config

Files:

Legend:

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

    r849 r1123  
    1616the life of an Apache process, which leads to significant performance gains 
    1717over other server arrangements. Make sure you have Apache installed, with the 
    18 mod_python module activated. 
     18mod_python module activated. Django requires Apache 2.x and mod_python 3.x. 
    1919 
    2020See `How to use Django with mod_python`_ for information on how to configure 
  • django/trunk/docs/modpython.txt

    r948 r1123  
    1010the life of an Apache process, which leads to significant performance gains over 
    1111other server arrangements. 
     12 
     13Django requires Apache 2.x and mod_python 3.x. 
    1214 
    1315.. _Apache: http://httpd.apache.org/ 
     
    130132    </Location> 
    131133 
    132 Just change ``Location`` to the root URL of your media files. 
     134Just change ``Location`` to the root URL of your media files. You can also use 
     135``<LocationMatch>`` to match a regular expression. 
     136 
     137This example sets up Django at the site root but explicitly disables Django for 
     138the ``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> 
    133154 
    134155Note that the Django development server automagically serves admin media files,