Sharedwww / talks / 2010-10-lmfdb / hello.pyOpen in CoCalc
Author: William A. Stein
1
from flask import Flask
2
app = Flask(__name__)
3
4
@app.route("/")
5
def hello():
6
return "Hello World!"
7
8
@app.route("/conductor/<int:conductor>")
9
def cond(conductor):
10
return "Data about conductor %s"%conductor
11
12
if __name__ == "__main__":
13
app.run()
14