Answered by : tejas-naik
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world(): return 'Hello, World!'
Source : | Last Update : Fri, 19 Mar 21
Answered by : nk
# Extremely simple flask application, will display 'Hello World!' on the screen when you run it
# Access it by running it, then going to whatever port its running on (It'll say which port it's running on).
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world(): return 'Hello, World!'
if __name__ == '__main__': app.run()
Source : https://flask.palletsprojects.com/en/1.1.x/quickstart/ | Last Update : Fri, 07 Aug 20
Answered by : energetic-eland-ndofli38ulj3
pip install -U Flask
Source : https://pypi.org/project/Flask/ | Last Update : Mon, 20 Apr 20
Answered by : foolish-ferret-a8m3x33v79r3
pip install flask
Source : | Last Update : Fri, 21 Jan 22
Answered by : lovely-lion-weas03x693rz
$ flask run --host=0.0.0.0
Source : https://flask.palletsprojects.com/en/2.0.x/quickstart/ | Last Update : Sun, 23 May 21
Answered by : aaditya-goenka
from flask import Flask
app = Flask(__name__) #creating the Flask class object
@app.route('/') #decorator drfines the
def home(): return "hello, this is our first flask website";
if __name__ =='__main__': app.run(debug = True)
Source : https://www.javatpoint.com/first-flask-application | Last Update : Thu, 06 Oct 22
Answered by : defiant-dormouse-bds4pmg1f36f
$ curl https://bootstrap.pypa.io/get-pip.py | python
Source : https://moringaschool.instructure.com/courses/630/pages/weekend-welcome-to-flask-the-internet-virtual-environment?module_item_id=56879 | Last Update : Tue, 03 May 22
Answered by : defiant-dormouse-bds4pmg1f36f
$ source virtual/bin/activate
Source : https://moringaschool.instructure.com/courses/630/pages/weekend-welcome-to-flask-the-internet-virtual-environment?module_item_id=56879 | Last Update : Tue, 03 May 22
Answered by : crazy-copperhead-t2zimeq48pv1
$ . venv/bin/activate
Source : https://flask.palletsprojects.com/en/2.0.x/installation/ | Last Update : Thu, 06 Jan 22