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))
def abort(self, *args, **kwargs): webapp2.abort(*args, **kwargs)