title: How convert Mysql datetime format "2015-10-10 10:30:59.108000" to User readable format Like "Oct. 10, 2015, 2:31 p.m"
body: <p>6, python 2.7 with MYSQL database. </p>
  
  <p>Following are the details</p>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>#Mysql database connection
  DATABASES = {
      'default': {
          'ENGINE':'django.db.backends.mysql',
          'NAME': 'monitoringtool',
          'USER': 'root',
          'PASSWORD': 'root',
          'HOST': 'localhost',
          'PORT': '3306',
      }
  }
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.6/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  </code></pre>
  
  <p><strong>Models.py</strong></p>
  
  <pre><code>class MonitoringDetail(models.Model):
      host_id = models.ForeignKey('HostDetail')
      transac_date = models.DateTimeField(auto_now_add=True, blank=True)    
      def __unicode__(self): 
          return '%s %s %s'% (self.id, self.host_id, self.transac_date)
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>date_objects = MonitoringDetail.objects.all()
  for date_object in date_objects:
              transac_date = date_object.transac_date
              print transac_date
  </code></pre>
  
  <p>In the above view when I print transac_date it gives me to date in this format: <code>2015-10-10 08:38:25.299000+00:00</code>
  But actually I want to date in this format: <code>Oct. 10, 2015, 2:31 p.m</code>. </p>
  
  <p>Please help me here I am not sure where I am missing?</p>