Tornado 4.5 Documentation
request forgery protection Running and deploying Processes and ports Running behind a load balancer Static files and aggressive file caching Debug mode and automatic reloading WSGI and Google App Engine configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, current_user locale: alias for handler.locale _: alias for handler.locale.translate static_url: alias for handler.static_url xsrf_form_html: alias for handler.xsrf_form_html reverse_url: alias for Application0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 6.1 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes 3 • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 5.1 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; (continues0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: 6.1. User’s guide 25 Tornado Documentation, Release 6.0.4 app = tornado.web.Application([ current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.2 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 5.1 Documentation
protection DNS Rebinding Running and deploying Processes and ports Running behind a load balancer Static files and aggressive file caching Debug mode and automatic reloading WSGI and Google App Engine configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, current_user locale: alias for handler.locale _: alias for handler.locale.translate static_url: alias for handler.static_url xsrf_form_html: alias for handler.xsrf_form_html reverse_url: alias for Application0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 6.4 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ url(r"/app", tornado.web.RedirectHandler, dict(url="http://itunes current_user • locale: alias for handler.locale • _: alias for handler.locale.translate • static_url: alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for 50M; location ^~ /static/ { root /var/www; if ($query_string) { expires max; } } location = /favicon.ico { rewrite (.*) /static/favicon.ico; } location = /robots.txt { rewrite (.*) /static/robots.txt; }0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













