This commit is contained in:
2017-12-08 02:34:50 +03:00
parent dcbda009fa
commit 026658e373

View File

@ -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)