From a7dbcbd93130d632fdf2b221190bb8084827abfa Mon Sep 17 00:00:00 2001 From: lele555 <3583165504@qq.com> Date: Sat, 3 Oct 2026 11:35:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20project-a/articleapp/model?= =?UTF-8?q?s.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project-a/articleapp/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 project-a/articleapp/models.py diff --git a/project-a/articleapp/models.py b/project-a/articleapp/models.py new file mode 100644 index 0000000..31a3c79 --- /dev/null +++ b/project-a/articleapp/models.py @@ -0,0 +1,9 @@ +from django.db import models + +class Article(models.Model): + title = models.CharField(max_length=100) + content = models.TextField() + create_time = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.title \ No newline at end of file