title: Django: How to make a datetime object aware of the timezone in which it was created?
body: <p>I am running a program that requests ocean tide data from a remote server. The <code>time</code> and <code>date</code> of this tide data is being computed based on my machine's local time zone. I want to use these local dates and times to create a <code>datetime</code> object, which I will then save in a Django model.</p>
  
  <pre><code>datetime_obj = datetime(loc_year, loc_month, loc_date, loc_hour, loc_minute)
  </code></pre>
  
  <p>How do I ensure that the <code>datetime</code> object is aware that it was created based on a local time zone, before posting it to Django?</p>
  
  <p>I guess, I would want it to look like this before posting it:</p>
  
  <pre><code>datetime_obj = datetime(loc_year, loc_month, loc_date, loc_hour, loc_minute, loc_timezone)
  </code></pre>
  
  <p>How do I get the local timezone of my machine dynamically? And how to I ensure that all users see the time converted to their own local timezone.</p>