title: 'AddView' object has no attribute 'render_to_response'
body: <p><em>my view.py</em> is:</p>
  
  <pre><code>class AddView(BaseCreateView):
      template_name = 'add.html'
      model = Classname
      fields = '__all__'
      def get_success_url(self):
          return self.reverse('sitepro:list', kwargs=[])
  
      def get_context_data(self, *args, **kwargs):
          context = super(AddView, self).get_context_data(*args, **kwargs)
          context['form'] = ClassnameForm
          return context
  
      def form_valid(self, form):
          form.save()
          return super(AddView, self).form_valid(form)
  
      def form_invalid(self, form):
          return render_to_response(self.get_context_data(form=form))
  </code></pre>
  
  <hr>
  
  <p>I'm not getting what it want to say as I have <code>included render_to_response</code>. Please anybody help me to fix it.</p>