Flask Documentation (1.1.x)Security Security Headers Copy/Paste to Terminal Unicode in Flask Automatic Conversion The Golden Rule Encoding and Decoding Yourself Configuring Editors Flask Extension Development Anatomy of an Extension first argument and any number of keyword arguments, each corresponding to a variable part of the URL rule. Unknown variable parts are appended to the URL as query parameters. Why would you want to build # existing code omitted from . import blog app.register_blueprint(blog.bp) app.add_url_rule('/', endpoint='index') return app Unlike the auth blueprint, the blog blueprint does not have0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)first argument and any number of keyword arguments, each corresponding to a variable part of the URL rule. Unknown variable parts are appended to the URL as query parameters. Why would you want to build app = ... # existing code omitted from . import blog app.register_blueprint(blog.bp) app.add_url_rule('/', endpoint='index') return app Unlike the auth blueprint, the blog blueprint does not have a will be blog.index. Some of the authentication views referred to a plain index endpoint. app.add_url_rule() associates the endpoint name 'index' with the / url so that url_for('index') or url_for('blog.index')0 码力 | 291 页 | 1.25 MB | 1 年前3
Tornado 6.0 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 6.1 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests begin- ning with /pictures/ to the prefix /photos/ instead: app = tornado0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 6.0 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests begin- ning with /pictures/ to the prefix /photos/ instead: app = tornado0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 268 页 | 1.09 MB | 1 年前3
共 433 条
- 1
- 2
- 3
- 4
- 5
- 6
- 44













