Add an action
attribute to your form
tag. This will allow you to point all searches at one view.
<form action="{{ url_for('search') }}">
You can then include something along these lines with your views.
@app.route('/search')
def search():
query = request.args('search')