From 78c434095ad6aed94b3ce3244bf349778188c28c Mon Sep 17 00:00:00 2001 From: Date: Fri, 8 Dec 2017 02:43:36 +0300 Subject: [PATCH] heroku --- blog/templates/blog/base.html | 2 +- blog/templates/blog/post_detail.html | 7 +++---- blog/views.py | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/blog/templates/blog/base.html b/blog/templates/blog/base.html index 67df96a..f1b3c20 100644 --- a/blog/templates/blog/base.html +++ b/blog/templates/blog/base.html @@ -1,5 +1,5 @@ {% load staticfiles %} -{% comment %} {% load pagination_filters %} {% comment %} +{% load pagination_filters %} BLOG diff --git a/blog/templates/blog/post_detail.html b/blog/templates/blog/post_detail.html index 2e54e88..a846b97 100644 --- a/blog/templates/blog/post_detail.html +++ b/blog/templates/blog/post_detail.html @@ -1,6 +1,5 @@ -{% comment %}{% extends 'blog/base.html' %}{% endcomment %} - -{% comment %}{% block content %}{% endcomment %} +{% extends 'blog/base.html' %} +{% block content %}
@@ -29,4 +28,4 @@
-{% comment %}{% endblock %}{% endcomment %} +{% endblock %} diff --git a/blog/views.py b/blog/views.py index b26ab9b..49b8ebf 100644 --- a/blog/views.py +++ b/blog/views.py @@ -52,9 +52,9 @@ def post_list(request, page='1', tag=None): except EmptyPage: # If page is out of range (e.g. 9999), deliver last page of results. posts = paginator.page(paginator.num_pages) #print dir(posts.paginator) - # return render_to_response('blog/post_list.html', {'posts': posts, 'latest': latest, 'cloud': tag_cloud, 'search_query': search_query}) - content = {'post' : Post.objects.get(pk=1)} - return render(request, 'blog/post_detail.html') + return render_to_response('blog/post_list.html', {'posts': posts, 'latest': latest, 'cloud': tag_cloud, 'search_query': search_query}) + # content = {'post' : Post.objects.get(pk=1)} + # return render(request, 'blog/post_detail.html') def post_detail(request, pk): post = get_object_or_404(Post, pk=pk)