wikilibras.wsgi.tmpl
451 Bytes
# Check the official documentation http://flask.pocoo.org/docs/deploying/mod_wsgi/
# Activate the virtual env (we assume that virtualenv is in the env folder)
activate_this = '<path-to-project>/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import logging, sys
sys.stdout = sys.stderr
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,'<path-to-project>')
# Run the web-app
from main import app as application