Complete the code to import the Flask class from the flask package.
from flask import [1] app = Flask(__name__)
The Flask class is imported from the flask package to create the app instance.
Complete the command to run a Flask app using Gunicorn on port 8000.
gunicorn [1]:app -b 0.0.0.0:8000
Gunicorn expects the Python module name without the .py extension. If your file is app.py, you use 'app'.
Fix the error in the uWSGI command to serve the Flask app from app.py.
uwsgi --http :5000 --wsgi-file [1] --callable app
The --wsgi-file option requires the Python file name including the .py extension.
Fill both blanks to create a Gunicorn command that runs the app with 4 workers on port 8080.
gunicorn [1]:app -w [2] -b 0.0.0.0:8080
The module name is 'app' and the number of workers is set to 4 with -w 4.
Fill all three blanks to create a uWSGI command that serves app.py with 2 processes and 4 threads on port 9090.
uwsgi --http :9090 --wsgi-file [1] --processes [2] --threads [3] --callable app
The file is app.py, with 2 processes and 4 threads specified for uWSGI.