Created
May 31, 2012 19:58
-
-
Save doobeh/2845832 to your computer and use it in GitHub Desktop.
General WSGI setup for Apache/mod_wsgi & Flask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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