1from django.utils import timzone
2This enables you to have a timestamp on any model if you create a
3DateTimeField.
4
5For the date, you can use datetime.date.today() or datetime.datetime.now().date().
6
7For the time, you can use datetime.datetime.now().time().
8
9However, why have separate fields for these in the first place?
10Why not use a single DateTimeField? in Models
11
12You can always define helper functions on the model that return the
13.date() or .time() later if you only want one or the other.