---
title: "Discussion on \"Django defaults are better than auto_now and auto_now_add\" | Hashnode"
description: "Discussion on \"Django defaults are better than auto_now and auto_now_add\". Setting auto_now and auto_now_add to True will automatically set a DateField or a DateTimeField to the current date and time. This works great for \"created\" and \"modified\" fields.\nHowever, suppose you're importing content from another system, and you..."
url: "https://hashnode.com/posts/django-defaults-are-better-than-auto_now-and-auto_now_add/5d1642b221eb52ab1cf2dfc8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Django defaults are better than auto\_now and auto\_now\_add](https://sethl.hashnode.dev/django-defaults-are-better-than-auto_now-and-auto_now_add?utm_source=hashnode&utm_medium=feed)

Setting auto\_now and auto\_now\_add to True will automatically set a DateField or a DateTimeField to the current date and time. This works great for "created" and "modified" fields. However, suppose you're importing content from another system, and you...

Jun 28, 2019 · sethl.hashnode.dev  
Updated Jul 1, 2019  
Read the article

-   [#django](https://hashnode.com/tag/django)

## Written by

[Seth Livingston](https://hashnode.com/@sethl)

@sethl · Dallas, TX

  
[View profile](https://hashnode.com/@sethl)

Technical Lead for CultureMap, InnovationMap, SportsMap, & AutomotiveMap. Python, Django, Elm, & JavaScript.

## Responses 1

Markdown supported · ⌘↵ to post

[Mark](https://hashnode.com/@mverleg)

[Jun 29, 2019](https://hashnode.com/posts/django-defaults-are-better-than-auto_now-and-auto_now_add/5d1642b221eb52ab1cf2dfc8/comment/5d179316a31cb51f4f2ceef6)

(And don't accidentally write

```
created = models.DateTimeField(default=timezone.now())
```

because then you get the server start time. Not that I ever did something like that and not notice it for weeks...)
