Edgewall Software

Changes between Version 10 and Version 11 of ModPython


Ignore:
Timestamp:
Jun 29, 2004, 4:02:10 PM (20 years ago)
Author:
Jonas Borgström
Comment:

Added TracUriRoot option.

Legend:

Unmodified
Added
Removed
Modified
  • ModPython

    v10 v11  
    2020   SetHandler mod_python
    2121   PythonHandler trac.ModPythonHandler
     22   PythonOption TracUriRoot /trac/myproject
    2223   PythonOption TracEnv /var/svn/trac/myproject
    2324</Location>
    2425}}}
    2526
    26 ''Note: you might need to create a real physical {{{trac/}}} directory (name matches the first location path segment from the above example) inside your !DocumentRoot so that Trac can figure out the correct base location. That seems to be a problem (or feature?) with mod_python.''
    2727
    2828== Setting up multiple projects ==
     
    3636  SetHandler mod_python
    3737  PythonHandler trac.ModPythonHandler
     38  PythonOption TracUriRoot /trac
    3839  PythonOption TracEnvParentDir "/var/www/projects"
    3940</LocationMatch>
     
    5253</LocationMatch>
    5354<Location /trac/exampleone>
     55  PythonOption TracUriRoot "/trac/exampleone"
    5456  PythonOption TracEnv "/var/www/projects/exampleone"
    5557</Location>
    5658<Location /trac/exampletwo>
     59  PythonOption TracUriRoot "/trac/exampletwo"
    5760  PythonOption TracEnv "/var/www/projects/exampletwo"
    5861</Location>