Skip to content

Instantly share code, notes, and snippets.

@gmansilla
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save gmansilla/427d4fd6cd0d3bad6510 to your computer and use it in GitHub Desktop.

Select an option

Save gmansilla/427d4fd6cd0d3bad6510 to your computer and use it in GitHub Desktop.
import __main__
#__main__.__requires__ = ['ReviewBoard']
import pkg_resources
import os
import sys
import site
site.addsitedir('/usr/lib/python2.6/site-packages')
os.environ['DJANGO_SETTINGS_MODULE'] = "reviewboard.settings"
os.environ['PYTHON_EGG_CACHE'] = " /var/www/reviewboard/tmp/egg_cache"
os.environ['HOME'] = " /var/www/reviewboard/data"
os.environ['PYTHONPATH'] = ' /var/www/reviewboard/conf:' + os.environ.get('PYTHONPATH', '')
sys.path = [' /var/www/reviewboard/conf'] + sys.path
activate_env=os.path.expanduser("/usr/local/reviewboard/reviewboard_env/bin/activate_this.py")
execfile(activate_env, dict(__file__=activate_env))
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment