title: AttributeError: datetime.date object has no Attribute '__dict__'
body: <pre><code>resp = web.Response(body=json.dumps(r, cls=CJsonEncoder, ensure_ascii=False, default=lambda o: o.__dict__).encode('utf-8'))
  </code></pre>
  
  <p>when I used jinja2, and retrieve date form MYSQL, but the error shown.
  data:</p>
  
  <pre>
  2015-09-01
  2015-09-04
  </pre>
  
  <p>how to fix it?
  may i need convert jinja2 to django??</p>