Found this answer to the same question here Timestamp fields in django but I think I'm missing something - shouldn't saving timestamps in django models be easier than having to create your own timestamp field?
I have a model that has a DateTimeField
field. To feed that field, I am using a datetime
object. But I have just realized that datetime
object doesn't actually include timezone, so I would be better off just directly storing the timestamp, as originally I'm getting this data from an API in timestamps anyway. Any more straightforward way to do this than in the answer above?