def initialize_app(): verify_parameters() db = storage.prepare_storage(database_connector()) ensure_data(db) session_manager = storage.DBSessionFactory(db) return api.create_api([session_manager])
import common import storage common.verify_parameters() storage.migrate_db(common.database_connector())