(request)
return render(request, template_name="user_myposts.html", context=context)
Show posts by user
Show posts by user
Show posts by user
def myposts(request):
    """
    Show posts by user
    """
    posts = post_list(request, topic=MYPOSTS)

    context = dict(posts=posts, topic=MYPOSTS, tab=MYPOSTS)

    return render(request, template_name="user_myposts.html", context=context)
def myposts ( request ) : posts = post_list ( request , topic = MYPOSTS ) context = dict ( posts = posts , topic = MYPOSTS , tab = MYPOSTS ) return render ( request , template_name = "user_myposts.html" , context = context )