<filename>QuickDemos/FlaskBootstrap/app.py

from flask import Flask, render_template
from random import randint

app = Flask(__name__)

@app.route("/")
def index():
    return render_template("index.html")

@app.route('/helloworld')
def hello_world():
    return 'Hello, World!'

@app.route('/name')
def name(name=None):
    names=["Fred", "Jack", "Ashley", "Angellica"]
    name=names[randint(0,3)]
    return render_template("index.html", name=name)

@app.route('/age')
def age():
    return 'Hey!' "You're Old"

if __name__ == "__main__":
    app.run(debug=True, threaded=True, port=5000)




<filename>QuickDemos/FlaskBootstrap/app.py

from flask import Flask, render_template
from random import randint

app = Flask(__name__)

@app.route("/")
def index():
    return render_template("index.html")

@app.route('/helloworld')
def hello_world():
    return 'Hello, World!'

@app.route('/name')
def name(name=None):
    names=["Fred", "Jack", "Ashley", "Angellica"]
    name=names[randint(0,3)]
    return render_template("index.html", name=name)

@app.route('/age')
def age():
    return 'Hey!' "You're Old"

if __name__ == "__main__":
    app.run(debug=True, threaded=True, port=5000)



