title: Django form_valid() and form_invalid() in CreateView not called
body: <p>I am currently using django's CreateView to post data to the database. Unfortunately, the method where I would like to save and perform custom logic, <a href="https://docs.djangoproject.com/en/dev/ref/class-based-views/mixins-editing/#django.views.generic.edit.FormMixin.form_valid" rel="nofollow noreferrer">form_valid()</a> is never called. I read on another stack overflow response that form_invalid() might uncover the problem, but I can't get that method to call either. The only method that seems to call is get(), which I overrode and put a print statement in. What am I doing wrong? </p>
  
  <p>the class declaration in view.py</p>
  
  <pre><code>class TeamCreate(CreateView): # Manipulate and use this Method instead of create_team
      model = Team
      # form_class = create_team_form
      fields = ['team_name', 'sport', 'sport_season']
      success_url = '/'
  
      def get(self, request, *args, **kwargs):
          self.user = request.user
          print 'happening1'
          return super(TeamCreate, self).get(request, *args, **kwargs)
  
  
      def form_valid(self, form):
          print 'happening2'
          # form.instance.save()
          # self.user.teams.add(form.instance)
          form.save()
          return super(form_valid, self).form_valid(form)
  
      def form_invalid(self, form):
          print "form is invalid"
          return http.HttpResponse("form is invalid.. this is just an HttpResponse object")
  </code></pre>
  
  <p>the relevant template code</p>
  
  <pre><code>{% block content %}
  &lt;form action="" method=”POST”&gt;
       {% csrf_token %}
       {{ form|crispy }}
       &lt;input class="btn btn-primary" type="submit" value="Create" /&gt;
  &lt;/form&gt;
  </code></pre>