auto_now_add
[pinterest clone (28)] 문제사항 수정
db에 create_at column이 쌓이지 않고(NULL) 있다. (원래 게시물 만든 날짜가 들어가야함) articleapp/models.py from django.contrib.auth.models import User from django.db import models # Create your models here. class Article(models.Model): writer = models.ForeignKey(User, on_delete=models.SET_NULL, related_name='arrticle', null=True) title = models.CharField(max_length=200, null=True) image = models.ImageField(upload_to='ar..