title: How to use get_context_data in django
body: <p>I have 
  <strong>Views.py</strong></p>
  
  <pre><code>class newChartView(TemplateView):
      template_name = "new_report_view.html"
  
      def get_context_data(self, **kwargs):
          context = super(newChartView, self).get_context_data(**kwargs)
          context['count'] = smslogger.objects.all()
          return context
  </code></pre>
  
  <p>and <strong>new_report_view.html</strong> as</p>
  
  <pre><code>{% for x in count %}
  {{ x.count }}
  {% endfor %}
  </code></pre>
  
  <p>and it show error</p>
  
  <pre><code>'module' object has no attribute 'objects'
  </code></pre>
  
  <p><strong>smsloggger</strong></p>
  
  <pre><code>model
  
  class Log(models.Model):
     date= models.DateField()
     count=models.CharField(max_length=100)
     class Meta:
          verbose_name_plural = "SMS Log"
  
     def __unicode__(self):
          return self.date,self.count
  </code></pre>
  
  <p>I want to have the data from smslogger app. How can I acheive it through TemplateView subclass</p>