title: Django "The view didn't return an HttpResponse object."
body: <p>I have a simple view in which I'm saving a form. The code seems 'clean', but I can't get rid of the error:</p>
  <blockquote>
  <p>&quot;The view didn't return an HttpResponse object.&quot;</p>
  </blockquote>
  <p>Though I've searched on the web, I did not find a relevant indication.</p>
  <pre><code>def classroom_privacy(request,classname):
           theclass = Classroom.objects.get(classname=classname)
       if request.method == 'POST':  
         form = PrivacyClass(request.POST)
         if form.is_valid():
             new_obj = form.save(commit=False)
             new_obj.save()
             return HttpResponseRedirect('.')    
         else:
             form = PrivacyClass()     
         return render_to_response('classroom/classroom_privacy.html', {'form': form}, 
            context_instance=RequestContext(request))
  </code></pre>