Merge pull request #3 from mandlm/feature/random-content

Display a random number
This commit is contained in:
mandlm 2018-10-29 18:52:07 +01:00 committed by GitHub
commit 0409e4806d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
#!/usr/bin/python3
from flask import Flask, render_template
from random import randint
app = Flask(__name__)
@app.route("/")
def hello():
return render_template("hello.html")
return render_template("hello.html", num = randint(1, 23))
if __name__ == "__main__":
app.run()

View File

@ -1 +1 @@
Hello Slider!
Hello slider number {{ num }}!