Merge remote-tracking branch 'origin/1.1.x'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parents aad9926, ac9589c · Browse files · 4 files·+6 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+6 added−6 removed
- other:+6 added−6 removed
Provenance
- Commit
037ae3f- Tree
583b52c- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
aad9926- Parent 2
ac9589c
4 files changed+6 added−6 removed
modified:docs/deploying/index.rst+1 added-1 removed
15 unmodified lines16 Hosted options17 --------------18 19 - `Deploying Flask on Heroku <https://devcenter.heroku.com/articles/getting-started-with-python>`_20-- `Deploying Flask on Google App Engine <https://cloud.google.com/appengine/docs/standard/python/getting-started/python-standard-env>`_20+- `Deploying Flask on Google App Engine <https://cloud.google.com/appengine/docs/standard/python3/runtime>`_21 - `Deploying Flask on AWS Elastic Beanstalk <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_22 - `Deploying on Azure (IIS) <https://docs.microsoft.com/en-us/azure/app-service/containers/how-to-configure-python>`_23 - `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_24 11 unmodified linesmodified:docs/errorhandling.rst+1 added-1 removed
208 unmodified lines209 210 If there is an error handler registered for ``InternalServerError``,211 this will be invoked. As of Flask 1.1.0, this error handler will always212 be passed an instance of ``InternalServerError``, not the original213-unhandled error. The original error is available as ``e.original_error``.213+unhandled error. The original error is available as ``e.original_exception``.214 Until Werkzeug 1.0.0, this attribute will only exist during unhandled215 errors, use ``getattr`` to get access it for compatibility.216 217 .. code-block:: python80 unmodified linesmodified:docs/templating.rst+2 added-2 removed
1 unmodified line2 3 Templates4 =========5 6-Flask leverages Jinja2 as template engine. You are obviously free to use6+Flask leverages Jinja2 as its template engine. You are obviously free to use7 a different template engine, but you still have to install Jinja2 to run8 Flask itself. This requirement is necessary to enable rich extensions.9 An extension can depend on Jinja2 being present.10 88 unmodified lines99 100 Standard Filters101 ----------------102 103-These filters are available in Jinja2 additionally to the filters provided103+Flask provides the following Jinja2 filters in addition to the filters provided104 by Jinja2 itself:105 106 .. function:: tojson107 :noindex:129 unmodified linesmodified:docs/testing.rst+2 added-2 removed
421 unmodified lines422 import click423 424 @app.cli.command('hello')425 @click.option('--name', default='World')426- def hello_command(name)426+ def hello_command(name):427 click.echo(f'Hello, {name}!')428 429 def test_hello():430 runner = app.test_cli_runner()18 unmodified lines449 return value.upper()450 451 @app.cli.command('hello')452 @click.option('--name', default='World', callback=upper)453- def hello_command(name)453+ def hello_command(name):454 click.echo(f'Hello, {name}!')455 456 def test_hello_params():457 context = hello_command.make_context('hello', ['--name', 'flask'])4 unmodified lines