From 0efe073a2a976e721a7310710682de6f891b7945 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 1 Sep 2023 16:30:04 +0300 Subject: [PATCH] 0.7.10 article picture --- ArticlesApp/views.py | 4 ++-- templates/pages/p_articles.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArticlesApp/views.py b/ArticlesApp/views.py index 783a5c3..075fb78 100644 --- a/ArticlesApp/views.py +++ b/ArticlesApp/views.py @@ -75,7 +75,7 @@ def ArticlesPageView(request, year=None): raise Http404 - arts = ArticleModel.objects.filter(**kwargs) + arts = ArticleModel.objects.filter(**kwargs).order_by('createDT') Dict = { 'articles': arts @@ -141,5 +141,5 @@ def ArticlesOnePageView(request, art_url): - t = loader.get_template('pages/p_user_page.html') + t = loader.get_template('pages/p_article.html') return HttpResponse(t.render(Dict, request)) diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index 541efe1..b2de6c5 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -6,6 +6,6 @@
{{ art.name }}
{{ art.description }}
-
{{ art.text|safe }}
+{#
{{ art.text|safe }}
#} {% endfor %} {% endblock %} \ No newline at end of file