Ejemplo n.º 1
0
def portf_index(request):
    request = set_lang(request)
    return render_to_response(
        'index_portfolio.html', {
            'lastposts': five_last_post(),
            'categorys': PortfCateg.objects.all(),
            'backgr': MainMenuItem.objects.get(url=portfolio_sufix),
            'mainmenu': MainMenuItem.objects.all().exclude(url='/'),
            'lang': change_lang(request),
            'lasts': EventRecord.objects.all().order_by('id')[:four],
        })
Ejemplo n.º 2
0
def portf_item(request, portf):
    request = set_lang(request)
    project = PortfRecord.objects.get(url=portf)
    return render_to_response(
        'project_portfolio.html', {
            'lastposts': five_last_post(),
            'categ_down': categorys_in_row(project.category.name_in_uri),
            'portfolio': project,
            'backgr': MainMenuItem.objects.get(url=portfolio_sufix),
            'mainmenu': MainMenuItem.objects.all().exclude(url='/'),
            'lang': change_lang(request),
            'lasts': EventRecord.objects.all().order_by('id')[:four],
        })
Ejemplo n.º 3
0
def portf_index(request):
    request = set_lang(request)
    return render_to_response(
        "index_portfolio.html",
        {
            "lastposts": five_last_post(),
            "categorys": PortfCateg.objects.all(),
            "backgr": MainMenuItem.objects.get(url=portfolio_sufix),
            "mainmenu": MainMenuItem.objects.all().exclude(url="/"),
            "lang": change_lang(request),
            "lasts": EventRecord.objects.all().order_by("id")[:four],
        },
    )
Ejemplo n.º 4
0
def portf_item(request, portf):
    request = set_lang(request)
    project = PortfRecord.objects.get(url=portf)
    return render_to_response(
        "project_portfolio.html",
        {
            "lastposts": five_last_post(),
            "categ_down": categorys_in_row(project.category.name_in_uri),
            "portfolio": project,
            "backgr": MainMenuItem.objects.get(url=portfolio_sufix),
            "mainmenu": MainMenuItem.objects.all().exclude(url="/"),
            "lang": change_lang(request),
            "lasts": EventRecord.objects.all().order_by("id")[:four],
        },
    )