Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

WARNING: This is a development server

from flask import Flask

app = Flask(__name__)

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

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)
Source by exerror.com #
 
PREVIOUS NEXT
Tagged: #This #development #server
ADD COMMENT
Topic
Name
3+5 =