Apache2 WSGI Flask app gives sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file Apache2 WSGI Flask app gives sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file flask flask

Apache2 WSGI Flask app gives sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file


Give app.config['SQLALCHEMY_DATABASE_URI'] full path. Then give .db file ownership to www-data.