Serve a static image (not included)
This commit is contained in:
parent
0409e4806d
commit
d45d1347bd
2 changed files with 9 additions and 2 deletions
|
@ -5,9 +5,11 @@ from random import randint
|
|||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return render_template("hello.html", num = randint(1, 23))
|
||||
return render_template("hello.html", num=randint(1, 23))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue