Answers for "set python flask"

4

default flask app

from flask import Flask
app = Flask(__name__)

@app.route('/')
def index():
    return 'Flask'
Posted by: Guest on June-13-2020
0

flask setup

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
  return "Hello World!"

if __name__ == "__main__":
  app.run()
Posted by: Guest on August-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language