Last active
November 12, 2020 16:06
-
-
Save K-Mistele/d3fb9cb79c8f2f603b24c79c0995bb91 to your computer and use it in GitHub Desktop.
A sample flask app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
# create your app | |
app = Flask(__name__) | |
# create application routes | |
@app.route("/hello") | |
def say_hello(): | |
return "Hello!" | |
@app.route("/hello/<name>") | |
def hello_name(name): | |
return "Hello, " + user_name + "!" # this will break | |
# run the app | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment