Esempio n. 1
0
def posts_comments(post_id):

    post = Post.query.filter_by(id=post_id).one()
    # comments=Comment.get_comments(post_id)
    comments=Comment.get_comments(post_id)


    return render_template('post_comments.html', post=post, comments=comments, post_id=post.id)
Esempio n. 2
0
def comment(id):
    comments =Comment.get_comments(id)
    print(comment)
    title = 'comments'
    return render_template('comments.html',comments = comments,title = title)