def search_results():
    context = base_context()
    context['keywords'] = request.args.get('kwds', '')
    context['location'] = request.args.get('loc', '')
    return render_template('results.html', **context)
def index():
    context = base_context()
    imagelist = photos.find(is_cart=True)
    random.shuffle(imagelist)
    context['imagelist'] = imagelist
    return render_template('index.html', **context)
Beispiel #3
0
def about():
    context = base_context()
    return render_template('about.html', **context)