1) I think search result should be of method GET not POST. You might refer this link to see when to use POST and when to use GET

<form name="myform" method="GET" action="{% url 'search' %}">
// see if you need csrf_token here when this is GET request. Your homework

2) views.py

def search(request):
if request.method == 'GET': # this will be GET now
book_name = request.GET.get('search') # do some research what it does
try:
status = Add_prod.objects.filter(bookname__icontains=book_name) # filter returns a list so you might consider skip except part
return render(request,"search.html",{"books":status})
else:
return render(request,"search.html",{})