title: Django: Naive datetime while time zone support is active (sqlite)
body: <p>I'm going around in circles on this on and need some help.  I continue to get a <code>naive timezone</code> warning.  Not sure what I am doing wrong!  Arg.  </p>
  
  <p>Here is the warning:</p>
  
  <pre><code>/django/db/models/fields/__init__.py:1222: RuntimeWarning: DateTimeField Video.modified received a naive datetime (2014-10-07 00:00:00) while time zone support is active.
    RuntimeWarning)
  </code></pre>
  
  <p>Here is the model code (redacted somewhat):</p>
  
  <pre><code>from django.db import models
  from django.utils import timezone
  
  class ItemBase(models.Model):
      created = models.DateTimeField(editable=False)
      modified = models.DateTimeField(editable=False)
  
      class Meta:
          abstract = True
  
      def save(self, *args, **kwargs):
          """Updates timestamps on save"""
          if not self.id:
              self.created = timezone.now()
          self.modified = timezone.now()
          return super(ItemBase, self).save(*args, **kwargs)
  
  class Video(ItemBase):
      pass
  </code></pre>
  
  <p>And the relevant (I think) part of my settings file:</p>
  
  <pre><code>TIME_ZONE = 'UTC'
  USE_TZ = True
  </code></pre>
  
  <p>Is this a sqlite issue (am still testing things)?  Or am I missing something fundamental here?  I've read up on it <a href="https://stackoverflow.com/questions/11708821/django-ipython-sqlite-complains-about-naive-datetime">here</a> and <a href="https://stackoverflow.com/questions/18622007/runtimewarning-datetimefield-received-a-naive-datetime">here</a> and, of course, at the docs <a href="https://docs.djangoproject.com/en/dev/topics/i18n/timezones/#code" rel="nofollow noreferrer">here</a>.  But I am stumped.   Thanks.</p>
  
  <h2>edit: added test that throws the error</h2>
  
  <p>Am getting the error when I run my tests ... I left the redacted stuff in there but you should get the idea:</p>
  
  <pre><code>from django.test import TestCase
  from django.contrib.auth import get_user_model
  
  from video.models import Video, VideoAccount
  
  class VideoTestCase(TestCase):
  
      def setUp(self):
          user = get_user_model().objects.create_user(
              username='jacob', email='jacob@test.com', password='top_secret')
          self.video_account = VideoAccount.objects.create(
              account_type=1, account_id=12345, display_name="Test Account" )
          self.pk1 = Video.objects.create(video_type=1, video_id="Q7X3fyId2U0",
              video_account=self.video_account, owner=user)
  
      def test_video_creation(self):
          """Creates a video object"""
          self.assertEqual(self.pk1.video_id, "Q7X3fyId2U0")
          self.assertEqual(self.pk1.video_link, "https://www.youtube.com/watch?v=Q7X3fyId2U0")
  </code></pre>