Skip to content

Instantly share code, notes, and snippets.

@doobeh
Created May 31, 2012 19:58
Show Gist options
  • Save doobeh/2845833 to your computer and use it in GitHub Desktop.
Save doobeh/2845833 to your computer and use it in GitHub Desktop.
General WSGI setup for Apache/mod_wsgi & Flask
activate_this = '/home/user/environments/website/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import sys, os
abspath = os.path.dirname(__file__)
sys.path.append(abspath)
os.chdir(abspath)
from app import app as application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment