title: Django get current view in template
body: <p>How can I get the full name of the current view (my_app.views.index) in a template in Django 1.5?</p>
  
  <p>With forms, I have an object called "view" in the template which I read using a template tag.
  But with DetailViews I doesn't see anything similar.</p>
  
  <p>Is there a way using a custom template processor?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Situation 1:</p>
  
  <ol>
  <li>I retrieve a page, for example '/foo/bar/5/edit'.</li>
  <li>Django will call 'foo.views.editbar' with pk=5.</li>
  <li>This view renders an template 'foo/bar_form.html'</li>
  </ol>
  
  <p>Situation 2:</p>
  
  <ol>
  <li>If I retrieve '/foo/bar/new'</li>
  <li>Django will call 'foo.views.newbar'</li>
  <li>This view renders the same template as above ('foo/bar_form.html')</li>
  </ol>
  
  <p>How can I check in this template 'foo/bar_form.html', from which view it has been rendered?
  The result should be one of</p>
  
  <ul>
  <li>'foo.views.editbar'</li>
  <li>'foo.views.newbar'</li>
  </ul>