Konubinix' opinionated web of thoughts

Flask

Fleeting

from flask import Flask

app = Flask(name)

@app.route("/") def hello_world(): return “<p>Hello, World!</p>”

https://flask.palletsprojects.com/en/2.2.x/quickstart/

$ flask –app hello run –debug

https://flask.palletsprojects.com/en/2.2.x/quickstart/

Place the call in a main block, otherwise it will interfere when trying to import and run the application with a production server later.

if name == “main”: app.run(debug=True)

https://flask.palletsprojects.com/en/3.0.x/server/