title: Formatting date in django template
body: <p>My template renders the tag <code>{{ test.date}}</code> in the following format -</p>
  
  <p><code>2015-12-15T23:55:33.422679</code></p>
  
  <p>When I try to format it using django's built in template tag <code>date</code>, it doesn't display anything.</p>
  
  <p>Variations I've tried:</p>
  
  <p><code>{{ test.date|date:"SHORT_DATE_FORMAT" }}</code></p>
  
  <p><code>{{ test.date|date:"D d M Y" }}</code></p>
  
  <p>models.py:</p>
  
  <pre><code>class Human(models.Model):
      name = models.CharField(max_length=50,default='',blank=False)
  
  
  class Test(models.Model):
      human = models.ForeignKey(Human)
      date = models.DateTimeField(default=datetime.now)
  </code></pre>
  
  <p>views.py:</p>
  
  <pre><code>def list(request):
      h = Human.objects.all()
      s=[]
      for her in h: 
          t = h.test_set.all()
          s.extend(t)
      context = RequestContext(request, {'test_list': s,})
      return render_to_response('template.html', context)
  </code></pre>
  
  <p>I am then using it in template like this:</p>
  
  <pre><code>{% for test in test_list %}
       {{test.date}}
  {% endfor %}
  </code></pre>
  
  <p>What am I missing?</p>