Example #1
0
def serve_post(request):
    post_url = request.path_info
    post = Post.get_by_id(post_url)
    if not post: webapp.abort(404)
    return render('post.html', dict(post = post))
Example #2
0
 def abort(self, *args, **kwargs):
   webapp2.abort(*args, **kwargs)