예제 #1
0
파일: views.py 프로젝트: foundling/blog
def single_blog_post_by_permalink(permalink):
    post = db.find_one({'permalink': permalink})
    return render_template('post/single_blog_post.html', post=post)
예제 #2
0
파일: views.py 프로젝트: foundling/blog
def about_me():
    about_me = db.find_one({'title':'About Me'},collection='static')
    return render_template('about.html', about_me=about_me)
예제 #3
0
파일: views.py 프로젝트: foundling/blog
def single_blog_post_by_id(post_id):
    post = db.find_one({'post_id': post_id})
    return render_template('post/single_blog_post.html', post=post)