title: set default datetime format in python
body: <p>How to set default datetime format in python because i have multiple tuples to send via template on client side. This is not good approach to set each object's value to specified format. I want to set a datetime format on server side and these converted values will be shown to client. I tried</p>
  <pre><code>datetime.strftime(&quot;%Y-%m-%d %X&quot;)
  </code></pre>
  <p>but it is giving error.</p>