This commit is contained in:
2026-08-24 15:54:08 +03:30
commit 236002a87c
133 changed files with 5946 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from django.shortcuts import get_object_or_404, render
from .models import Article
def article_list(request):
articles = Article.objects.filter(is_published=True)
return render(request, "landing/article_list.html", {"articles": articles})
def article_detail(request, slug):
article = get_object_or_404(Article, slug=slug, is_published=True)
return render(request, "landing/article_detail.html", {"article": article})