mod_wsgi virtualenv

apache mod_wsgi 에서 virtualenv 을(를) 사용하기 위한 .wsgi Code

참고 url : http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/#working-with-virtual-environments


# python 2.x
activate_this = '/path/to/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
# python 3
activate_this = '/path/to/env/bin/activate_this.py'
with open(activate_this) as file_:
    exec(file_.read(), dict(__file__=activate_this))