import sys
flaskfirst = '/sites/flaskfirst'
if not flaskfirst in sys.path:
    sys.path.insert(0, flaskfirst)
from app import app
application = app
How to solve import errors while trying to deploy Flask using WSGI on Apache2