Skip to content

Instantly share code, notes, and snippets.

@justinkelly
Created October 22, 2010 00:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save justinkelly/639661 to your computer and use it in GitHub Desktop.
trac wsgi file for parent dir
# for more info refer: http://blog.justin.kelly.org.au/tracwsgi-for-tracenvparentdir
# based on the trac.wsgi used for the trac + bzr hosting service http://bzr.bz
import sys
sys.stdout = sys.stderr
import os
os.environ['TRAC_ENV_PARENT_DIR'] = '/var/www/trac'
os.environ['PYTHON_EGG_CACHE'] = ' /usr/share/pyshared'
import trac.web.main
application = trac.web.main.dispatch_request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment