2016-02-07 19:15:39 +00:00
|
|
|
from flask import Flask
|
2016-02-08 23:09:08 +00:00
|
|
|
|
2016-02-07 19:15:39 +00:00
|
|
|
app = Flask(__name__)
|
2016-02-08 23:09:08 +00:00
|
|
|
|
2016-02-07 19:15:39 +00:00
|
|
|
@app.route("/") # take note of this decorator syntax, it's a common pattern
|
|
|
|
def hello():
|
|
|
|
return "Hello World!"
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run()
|