from flask import Flask, render_template
app = Flask(__name__)
# our index route will handle rendering our form


@app.route('/main')
def main():
    return render_template("index.html", x=9)


@app.route('/main/<i>')
def many(i):
    return render_template("index.html", x=int(i))


# @app.route('/<danger>')
# def danger(a):
#     return render_template("index.html", x=int(a))


app.run(debug=True)


# from flask import Flask, render_template, request, redirect
# from random import shuffle
# app = Flask(__name__, static_url_path="/static", static_folder="static")
# @app.route('/')
# def index():
#     y = []
#     for i in range(0,10):
#         y.append(str(i+1))
#     return render_template("index.html", num = y)
# @app.route('/<x>')
# def numOfImages(x):
#     y = []
#     for i in range(0,int(x)):
#         y.append(str(i+1))
#     return render_template("index.html", num = y)
# @app.route('/danger')
# def alert():
#     print("user accessed danger page")
#     return redirect('/')
# @app.route('/random/<x>')
# def random(x):
#     y = []
#     for i in range(0,int(x)):
#         y.append(str(i+1))
#     shuffle(y)
#     return render_template("index.html", num = y)
# if __name__=="__main__":
#     app.run(debug=True)