Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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