コード例 #1
0
def search_results():
    context = base_context()
    context['keywords'] = request.args.get('kwds', '')
    context['location'] = request.args.get('loc', '')
    return render_template('results.html', **context)
コード例 #2
0
def index():
    context = base_context()
    imagelist = photos.find(is_cart=True)
    random.shuffle(imagelist)
    context['imagelist'] = imagelist
    return render_template('index.html', **context)
コード例 #3
0
ファイル: index.py プロジェクト: Cartwheels/cartwheels
def about():
    context = base_context()
    return render_template('about.html', **context)