title: How to use the same template with two CBVs in django?
body: <p>I have two CBVs in django</p>
  
  <pre><code>class StudentUpdateView(UpdateView):
  model = Student
  template_name = "students/students_edit.html"
  form_class = StudentUpdateForm
  
  def get_success_url(self):
      return u'%s?status_message=Студент успішно збережений ' % reverse('home')
  
  def post(self, request, *arg, **kwargs):
      if request.POST.get('cancel_button'):
          messages.info(self.request, "Edit canceled")
          return HttpResponseRedirect(
              u'%s?status_message=Редагування відмінено'
              % reverse('home'))
      else:
          messages.success(self.request, u"Студент змінений") 
          return super(StudentUpdateView, self).post(
              request,*arg, **kwargs)
  def get_context_data(self, **kwargs):
      context = super(StudentUpdateView, self).get_context_data(**kwargs)
      return context
  </code></pre>
  
  <p>Another one is for the same model but CreateView. I want to use the same template for this two views, and there are some parts in template i want to be dynamic.</p>
  
  <p>{% block meta_title %}Редагувати студента{% endblock meta_title %}
  {% block title %}Редагувати студента{% endblock title %}</p>
  
  <p>Meta title puts meta text and title brings to page H2 text. I'd like to change the text in this blocks according to my views (if i enter createview so text will be changed to some, if another - template changes to another text)
  I've tried to check it by ifequal or if request.path == url
  but code has no effect.
  How to check View that uses template in current time and change blocks' text in template for this view? </p>