def detail(request,article_id): from core.models import Product form=SearchForm(action='/search_post') data=Moshimo.get_by_article_id(article_id) data['form']=form.as_widget() return render_to_response('core/detail.html', data)