From 026658e373505cc24c54fcb5ad92797e63948483 Mon Sep 17 00:00:00 2001 From: Date: Fri, 8 Dec 2017 02:34:50 +0300 Subject: [PATCH] heroku --- blog/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blog/views.py b/blog/views.py index 0b9f5a5..b26ab9b 100644 --- a/blog/views.py +++ b/blog/views.py @@ -53,7 +53,8 @@ def post_list(request, page='1', tag=None): 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}) - return HttpResponse('HELLO') + 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)