Answers for "WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead."

0

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

from flask import Flask

app = Flask(__name__)

@app.route("/")
def index():
    return "<h1>Hello!</h1>"

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)
Posted by: Guest on April-26-2022

Code answers related to "WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead."

Browse Popular Code Answers by Language