Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask getting started

from flask import Flask

app = Flask(__name__)

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

if __name__ == '__main__':
    app.run(debug=True)
    
# To run in CMD
# python app.py
 
PREVIOUS NEXT
Tagged: #flask #started
ADD COMMENT
Topic
Name
7+7 =