게시물 등록 및 토큰검증 후 등록 추가

This commit is contained in:
2025-04-22 18:40:48 +09:00
parent 72a59cc924
commit 5421723a54
19 changed files with 384 additions and 0 deletions

12
blog/models.py Normal file
View File

@ -0,0 +1,12 @@
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
class Post(models.Model):
title = models.CharField(max_length=255)
content = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
author_name = models.CharField(max_length=150)
def __str__(self):
return self.title