title: fetch variables in django templates
body: <p>I am new to django .
  I am facing a small problem but unable to solve it.
  In my template when I try to access any variable using {{ }} but it returns blank while displaying something as detailview.whereas it works fine in listview.</p>
  
  <p>CODE:urls.py</p>
  
  <pre><code>urlpatterns = patterns('',
  
                             url(r'^$', ListView.as_view(
                                    queryset=Profile.objects.all().order_by("First_Name"),
                                    template_name="STUDENT_REGISTRATION.html")),
                             url(r'^(?P&lt;pk&gt;\d+)/$',DetailView.as_view(
                                    model=Profile,
                                    template_name="Profile.html")),
  </code></pre>
  
  <p>TEMPLATE:</p>
  
  <pre><code>{%extends "base.html" %}
  {% block content %}
  
  
  &lt;h2&gt;Registration No. :- {{ Profile.Registration_No }} &lt;br&gt;
      Full Name : {{ Profile.First_Name }} {{ Profile.Last_Name }} &lt;/h2&gt;
  
  
  &lt;div class="Profile_meta"&gt;
  {{ Profile.Date_of_Birth}}
  &lt;/div&gt;
  
  &lt;div class="Profile_body"&gt;
  {{ Profile.Permanent_Address|safe|linebreaks }}
  &lt;/div&gt;
  
  
  {%endblock%}
  </code></pre>
  
  <p>Plz help.. </p>