WebSlider/slider.py

16 lines
246 B
Python
Raw Normal View History

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