title: CSRF protection on Django FormView
body: <p>For example, I use this in <strong>views.py</strong>:</p>
  
  <pre><code>@csrf_protect
  def contacts(request):
      pass
  </code></pre>
  
  <p>Now I want to use <strong>FormView</strong>:</p>
  
  <pre><code>class ContactFormView(FormView):
      template_name = 'contacts.html'
      form_class = ContactForm
      success_url = '/'
  
      def form_valid(self, form):
          # This method is called when valid form data has been POSTed.
          # It should return an HttpResponse.
          form.send_email()
          return super(ContactFormView, self).form_valid(form)
  </code></pre>
  
  <p>So, where I need to use <strong>@csrf_protect</strong> decorator?</p>
  
  <p>Thanks!</p>