Exemple #1
0
def index(request):
    u"""
    トップページ
    新入荷商品:Moshimo.get_new_item
    ヒット商品:Moshimo.get_sales_item
    """
    from moshimo import Moshimo
    from core.forms import SearchForm
    from kay.utils import render_to_response

    form=SearchForm(action='/search_post')
    salesitem_data=Moshimo.get_sales_item()
    newitem_data=Moshimo.get_new_item()

    return render_to_response('core/index.html', {
        'form':form.as_widget(),
        'newitem':newitem_data,
        'salesitem':salesitem_data,
    })