Hi.
Here is my model:

class Flow(models.Model):
state = models.ForeignKey(State)
created = models.DateTimeField(default=datetime.now)
modified = models.DateTimeField(db_index=True, default=datetime.now)
def __str__(self):
return str(self.id)

I am getting warnings about time zone support such as the following:

C:\landy\lib\site-packages\django\db\models\fields\__init__.py:1278: 
RuntimeWarning: DateTimeField Flow.modified received a naive datetime 
(2014-10-13 17:31:17.510556) while time zone support is active. 
RuntimeWarning)

I have the following line in my settings file:
USE_TZ = True

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d904851e-d32a-454f-954a-c4887b1d97c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to