(request, tag)
return render(request, template_name="post_tags.html", context=context)
Show list of posts belonging to one post.
Show list of posts belonging to one post.
Show list of posts belonging to one post .
def post_tags(request, tag):
    """
    Show list of posts belonging to one post.
    """
    posts = post_list(request, tag=tag, cutoff=settings.POSTS_PER_PAGE)
    # Clear tags if no posts are found for it
    tag = tag if posts else ''
    context = dict(posts=posts, tag=tag)

    return render(request, template_name="post_tags.html", context=context)
def post_tags ( request , tag ) : posts = post_list ( request , tag = tag , cutoff = settings . POSTS_PER_PAGE ) # Clear tags if no posts are found for it tag = tag if posts else '' context = dict ( posts = posts , tag = tag ) return render ( request , template_name = "post_tags.html" , context = context )