title: How to get rid of hours, minutes, and seconds when displaying a date filtered with localize (Django templates)?
body: <p>How do I get rid of hours, minutes and seconds when I display a localized date (<code>{{ post.pub_date|localize }}</code>) in a Django template?</p>
  
  <p>If I only use a normal date (something like <code>post.pub_date|date:"d m Y"</code>), I can display only the day, month, and year (and not the hours, minutes, and s). With the localize filter, I can't seem to control what I display.</p>
  
  <p>As a last resort, I have transformed the datetime objects to date objects in my views before sending the posts, but it's more work (I for loop in the list of posts).</p>
  
  <p>Thanks.</p>