[Answer]-Django warning from Python while time zone support is active

1👍

today = datetime.datetime.today gives you a naive datetime object, it is not aware of a timezone. With timezone support active Django expects to get timezone aware datetime objects.

Use the utils from django.utils.timezone to get timezone aware objects:

https://docs.djangoproject.com/en/1.8/ref/utils/#module-django.utils.timezone

👤gonkan

Leave a comment