Skip to content

Instantly share code, notes, and snippets.

@dmahugh
Created February 9, 2020 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmahugh/9ce46e2c335103693cbbb8c48efd72b5 to your computer and use it in GitHub Desktop.
Save dmahugh/9ce46e2c335103693cbbb8c48efd72b5 to your computer and use it in GitHub Desktop.
simple Flask app for GAE deployment example
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def homepage():
return render_template("page.html", title="HOME PAGE")
@app.route("/docs")
def docs():
return render_template("page.html", title="docs page")
@app.route("/about")
def about():
return render_template("page.html", title="about page")
if __name__ == "__main__":
app.run(debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment