Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
trac wsgi file for parent dir
# for more info refer:
# based on the trac.wsgi used for the trac + bzr hosting service
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