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)
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)
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)
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)