Add main.py

Following basic Flask on Google App Engine tutorial:

https://realpython.com/python-web-applications/#build-a-basic-python-web-application
This commit is contained in:
Alan Orth 2021-03-11 14:32:50 +02:00
parent b04b441c3f
commit 2a5f612fe9
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

13
main.py Normal file
View File

@ -0,0 +1,13 @@
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Congratulations, it's a web app!"
if __name__ == "__main__":
app.run(host="127.0.0.1", port=8080, debug=True)