2018-10-28 21:49:15 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
2018-10-28 21:23:45 +00:00
|
|
|
from flask import Flask, render_template
|
2018-10-29 18:52:51 +00:00
|
|
|
from random import randint
|
2018-10-28 21:49:15 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
def hello():
|
2018-10-29 18:52:51 +00:00
|
|
|
return render_template("hello.html", num = randint(1, 23))
|
2018-10-28 21:49:15 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run()
|