bookpfe/recherche/views.py
2020-04-06 11:22:59 +02:00

14 lines
366 B
Python

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