title: Django didn't return an HttpResponse object
body: <p>I made a simple pet store app and just added search box feature and I received this error</p>
  
  <pre><code>ValueError at /pet/search/
  The view mysite.pet.views.search_page didn't return an HttpResponse object.
  </code></pre>
  
  <p>I tried to change render_to_response into HttpResponseRedirect but still got the same error.</p>
  
  <p>Linking back to my search_page function in views.</p>
  
  <pre><code>def search_page(request):
      form = SearchForm()
      if request.method == "POST":
          f = SearchForm(request.POST)
          if f.is_valid():
              Pets = Pet.objects.filter(animal = f.cleaned_data["text"])
              return HttpResponseRedirect("search.html",{"Pets":Pets},{"form":form})
          else:
              return render_to_response("search.html",{"form":form} , context_instance = RequestContext(request))
  </code></pre>
  
  <p>I did some research and I understand a view has to return a HttpResponse when a HttpRequest is made and render_to_response is just a shortcut.Can someone help explain why this function won't work.Thank you</p>