from flask import request, render_template, url_for, redirect
from flask_bootstrap import Bootstrap

from models import db, Product
from app import app

bootstrap = Bootstrap(app)

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

@app.route('/product_list')
def product_list():
    # メンバー一覧表示
    products = Product.query.all()
    for product in products:
        print(product)
    return render_template('product_list.html',products=products)

@app.route('/test')
def test_bootstrap():
    return render_template('test.html')

if __name__ == '__main__':
    app.run(debug=True)
