from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.template import loader def index(request): template = loader.get_template('recherche/index.html') context = { 'texte_recherche': request.POST.get('texte_recherche',False), } return HttpResponse(template.render(context,request))