From 2587f6753d20fa9791b19fc0725b8e4f8090b01d Mon Sep 17 00:00:00 2001 From: dongweiming Date: Tue, 15 Aug 2017 22:04:25 +0800 Subject: [PATCH] Fix blueprint doc --- docs/sanic/blueprints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sanic/blueprints.md b/docs/sanic/blueprints.md index b4fd06d7..5be33cb6 100644 --- a/docs/sanic/blueprints.md +++ b/docs/sanic/blueprints.md @@ -172,7 +172,7 @@ takes the format `.`. For example: ```python @blueprint_v1.route('/') async def root(request): - url = app.url_for('v1.post_handler', post_id=5) # --> '/v1/post/5' + url = request.app.url_for('v1.post_handler', post_id=5) # --> '/v1/post/5' return redirect(url)