from flask import Flask, render_template, request from flask_bootstrap import Bootstrap app = Flask(__name__) application = app bootstrap = Bootstrap(app) @app.route('/', methods=['GET']) def index(): ingredient = request.args.get('ingredient') if ingredient != None: return render_template('index.html', ingredient=ingredient) return render_template('index.html') @app.route('/user/') def user(name): return render_template('user.html', name=name) @app.route('/test') def test(): return render_template('test.html') @app.errorhandler(404) def page_not_found(e): return render_template('404.html'), 404