from app import app
from flask import request, redirect, url_for, render_template


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


@app.route('/search/', methods=['GET', 'POST'])
def search():
    if request.method == 'POST':
        print(request.form['query'])
        return request.form['query']
    else:
        return redirect(url_for('home'))

3ef9ebe7b3e0ab4870b289c3fd3dd0f9fab21fd8
<mask token>

<mask token>


@app.route('/search/', methods=['GET', 'POST'])
def search():
    if request.method == 'POST':
        print(request.form['query'])
        return request.form['query']
    else:
        return redirect(url_for('home'))

<mask token>


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


@app.route('/search/', methods=['GET', 'POST'])
def search():
    if request.method == 'POST':
        print(request.form['query'])
        return request.form['query']
    else:
        return redirect(url_for('home'))

from app import app
from flask import request, redirect, url_for, render_template


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


@app.route('/search/', methods=['GET', 'POST'])
def search():
    if request.method == 'POST':
        print(request.form['query'])
        return request.form['query']
    else:
        return redirect(url_for('home'))
