How to structure apache virtual host and wsgi file for Flask application with python 3.10 on raspbian

Solution
#!/var/www/darts/darts/venv/bin/python3.10
import sys
sys.path.append('/var/www/darts/darts/venv/lib/python3.10/site-packages/')

import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/darts/darts/")
sys.path.insert(0, "/var/www/darts/darts/venv/lib/python3.10/site-packages")

from dartsapp import create_app

application = create_app()

WSGIPassAuthorization On