Example #1
0
def ImageSe(request):
    page = Page.objects.get(Nom="index")
    t = ""
    for template in page.Template_Page.all() :
        t += recursif_template(template.contenu)  
    t = Template(t)
    c = RequestContext(request, dict(page=page))
    html = t.render(c)#page.Template_Page.contenu
    return HttpResponse(html)
Example #2
0
def ImageSe(request):
    page = Page.objects.get(Nom="index")
    t = ""
    for template in page.Template_Page.all():
        t += recursif_template(template.contenu)
    t = Template(t)
    c = RequestContext(request, dict(page=page))
    html = t.render(c)  #page.Template_Page.contenu
    return HttpResponse(html)
Example #3
0
def Films(request, pagefilm):
    page = Page.objects.get(Nom=pagefilm)
    t = ""
    filmnom = pagefilm.replace("_film", "")
    films = Film.objects.get(Nom=filmnom)
    for template in page.Template.all() :
        t += recursif_template(template.contenu)  
    t = Template(t)
    c = RequestContext(request, dict(page=page, films=films))
    html = t.render(c)#page.Template_Page.contenu
    return HttpResponse(html)
Example #4
0
def Films(request, pagefilm):
    page = Page.objects.get(Nom=pagefilm)
    t = ""
    filmnom = pagefilm.replace("_film", "")
    films = Film.objects.get(Nom=filmnom)
    for template in page.Template.all():
        t += recursif_template(template.contenu)
    t = Template(t)
    c = RequestContext(request, dict(page=page, films=films))
    html = t.render(c)  #page.Template_Page.contenu
    return HttpResponse(html)