[Django] 2장. Django 모델 정의, 어드민 설정
1. Django 모델 정의먼저, 애플리케이션 models.py 파일을 열고 데이터베이스 모델을 정의합니다. 예를 들어, 간단한 블로그 게시물을 나타내는 모델을 정의해봅니다.# myapp/models.pyfrom django.db import models# Create your models here.class Post(models.Model): title = models.CharField(max_length=200) # Title content = models.TextField() # SubScribe create_at = models.DateTimeField(auto_now_add=True) # create Date updated_at = models.DateTimeFiel..