diff --git a/project-a/articleapp/views.py b/project-a/articleapp/views.py new file mode 100644 index 0000000..42cebe5 --- /dev/null +++ b/project-a/articleapp/views.py @@ -0,0 +1,6 @@ +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