Edgewall Software

Changes between Version 28 and Version 29 of TracModPython


Ignore:
Timestamp:
Jul 8, 2005, 12:11:16 AM (19 years ago)
Author:
trac@…
Comment:

Added a note about PythonPath for non-standard Trac installs

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v28 v29  
    5353  AuthUserFile /var/trac/myproject/.htaccess
    5454  Require valid-user
     55</Location>
     56}}}
     57
     58If your trac installation isn't installed in your Python path, you'll have to tell Apache where to find the {{{trac.ModPythonHandler}}} module by adding this line to the {{{<Location>}}} section:
     59
     60{{{
     61<Location "/projects/myproject">
     62  PythonPath "sys.path+['/path/to/trac']"
     63  ...
    5564</Location>
    5665}}}
     
    8493}}}
    8594
     95
    8696The path in the last {{{<Location>}}} block should match your {{{htdocs_location}}}. The directive "{{{SetHandler None}}}" allows us to escape mod_python and have Apache serve the static files (located at {{{/var/www/trac.example.org/htdocs/trac/}}} on the filesystem in this example). Any other URLs will be handled by mod_python.
    8797