def about(request, *args, **kwargs): """Query the apps info in home page.""" initParam = {} page = request.GET.get('page', 1) apps = appModels.App.objects.filter(status=2) initParam['apps'] = queryAppsWithPaginator(request, page=page, apps=apps) return render_to_response('help/about.html', initParam, context_instance=RequestContext(request))
def screwHome(request, *args, **kwargs): """Query the apps info in screw home page.""" initParam = {} page = request.GET.get('page', 1) page_range = 10 apps = appModels.App.objects.filter(status=2, end_date__gt=datetime.datetime.now()) initParam['apps'] = queryViews.queryAppsWithPaginator(request, page_range=page_range, page=page, apps=apps) return render_to_response('home/screw.html', initParam, context_instance=RequestContext(request))
def terms(request, *args, **kwargs): """Query the apps info in home page.""" initParam = {} page = request.GET.get('page', 1) apps = appModels.App.objects.filter(status=2) initParam['apps'] = queryAppsWithPaginator(request, page=page, apps=apps) return render_to_response('help/terms.html', initParam, context_instance=RequestContext(request))
def screwHome(request, *args, **kwargs): """Query the apps info in screw home page.""" initParam = {} page = request.GET.get('page', 1) page_range = 10 apps = appModels.App.objects.filter(status=2, end_date__gt=datetime.datetime.now()) initParam['apps'] = queryViews.queryAppsWithPaginator( request, page_range=page_range, page=page, apps=apps) return render_to_response('home/screw.html', initParam, context_instance=RequestContext(request))