Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from flask import Flask
# initialize a new Flask app
app = Flask(__name__)
# add one routing
@app.route("/")
def index():
return "Homepage routing works!"
# start the Flask app
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
You can’t perform that action at this time.