예제 #1
0
파일: views.py 프로젝트: RulongWang/appbid
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))
예제 #2
0
파일: views.py 프로젝트: RulongWang/appbid
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))
예제 #3
0
파일: views.py 프로젝트: kahihia/appbid
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))
예제 #4
0
파일: views.py 프로젝트: kahihia/appbid
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))