From 2ec3637ee573ce241c4bebd52b3bb056c15ac4ad Mon Sep 17 00:00:00 2001 From: lele555 <3583165504@qq.com> Date: Tue, 6 Oct 2026 16:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20project-a/articleapp/views?= =?UTF-8?q?.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project-a/articleapp/views.py | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 project-a/articleapp/views.py diff --git a/project-a/articleapp/views.py b/project-a/articleapp/views.py deleted file mode 100644 index 42cebe5..0000000 --- a/project-a/articleapp/views.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.shortcuts import render -from .models import Article - -def index(request): - articles = Article.objects.all() - return render(request, "index.html", {"articles": articles}) \ No newline at end of file