model field not rendering on html page
<blockquote>
  <p>I want to show title or description on html page but i am not getting.
  how can i do that ?</p>
</blockquote>

<p><strong>models.py</strong></p>

<pre><code>class Event(models.Model):
    title = models.CharField(max_length=100)
    description = models.TextField()
</code></pre>

<p><strong>views.py</strong></p>

<pre><code>def get_event_list(request):
    model = Event.objects.all()
    return render_to_response('events.html', {'model':model})
</code></pre>

<p><strong>urls.py</strong></p>

<pre><code>url(r'^events/get_event_list/$','events.views.get_event_list', name ='get_event_list' ),
</code></pre>

<p><strong>events.html</strong></p>

<pre><code>&lt;h4&gt;{{ model.title }}&lt;/h4&gt;
&lt;p&gt;{{ model.description }}&lt;/p&gt;
</code></pre>

<p>This is because you are returning a list of objects. Not just one.</p>

<p>Try to loop it over.</p>

<pre><code>{% for item in model %} 
    &lt;h4&gt;{{ item.title }}&lt;/h4&gt;
    &lt;p&gt;{{ item.description }}&lt;/p&gt;
{% endfor %}
</code></pre>

<p>Or update your view like:</p>

<pre><code>def get_event_list(request):
    model = Event.objects.all()
    if model:
       model = model[0]
    return render_to_response('events.html', {'model':model})
</code></pre>

python html django