Edgewall Software

Changes between Version 60 and Version 61 of TracModWSGI


Ignore:
Timestamp:
Dec 18, 2014, 7:44:17 PM (9 years ago)
Author:
jordan.padams@…
Comment:

Added brief description for handling multiple projects in the trac.wsgi. I was unsuccessful through my configuration to set this using SetEnv or os.environ, so figured this was at least an option.

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v60 v61  
    6666A somewhat robust and generic version of this file can be created using the `trac-admin <env> deploy <dir>` command which automatically substitutes the required paths (see TracInstall#cgi-bin).
    6767
     68If you're using Trac with multiple projects you can specify their common parent directory using the `TRAC_ENV_PARENT_DIR` in the trac.wsgi in trac.wsgi: ''
     69
     70{{{#!python
     71  def application(environ, start_request):
     72      Add this to config when you have multiple projects                                             
     73      environ.setdefault('trac.env_parent_dir', '/usr/share/trac/projects') 
     74      ..
     75      ..
     76}}}
    6877
    6978== Mapping requests to the script