title: Python string to Django timezone (aware datetime)
body: <p><strong>TL;DR;</strong></p>
  
  <p>How to convert <code>2016-01-01</code> to Django <code>timezone</code>?</p>
  
  <p><strong>Full version</strong>:</p>
  
  <p>I receive a query string parameter from a form and I wanna get that string and use it as a datetime filter in Django. 
  The problem is that when I convert the string to a datetime, it's not making an aware datetime and so I lose a few hours due to timezone different. Maybe I'm losing myself in the formatting, but I'm not being able to do it.</p>
  
  <p>I have pytz, I have <code>USE_TZ = True</code> in my settings as well.</p>
  
  <p>example:</p>
  
  <pre><code>from datetime import date
  # Example from what I receive as GET querystring parameter
  start_date, end_date = '15-01-2016', '16-01-2016'
  DATE_FORMAT = '%Y-%m-%d'
  start_date = start_date.split('-')
  start_date = date(int(start_date[2]), int(start_date[1]), int(start_date[0]))
  sd_filter = start_date.strftime(DATE_FORMAT)
  
  end_date = end_date.split('-')
  end_date = date(int(end_date[2]), int(end_date[1]), int(end_date[0]))
  ed_filter = end_date.strftime(DATE_FORMAT)
  
  #query
  my_list = MyModel.objects.filter(created_at__range=(sd_filter, ed_filter))
  </code></pre>
  
  <p>the problem lies in the filter. I'm losing a few hours due to timezone from Django settings.</p>
  
  <p><strong>UPDATE:</strong> I don't need to convert a <code>datetime.now()</code> to my time. I need to convert a string to datetime.</p>