diff --git a/docs/deploying/index.rst b/docs/deploying/index.rst index 5e98f98c..01584d36 100644 --- a/docs/deploying/index.rst +++ b/docs/deploying/index.rst @@ -17,7 +17,7 @@ Hosted options -------------- - `Deploying Flask on Heroku `_ -- `Deploying Flask on Google App Engine `_ +- `Deploying Flask on Google App Engine `_ - `Deploying Flask on AWS Elastic Beanstalk `_ - `Deploying on Azure (IIS) `_ - `Deploying on PythonAnywhere `_ diff --git a/docs/errorhandling.rst b/docs/errorhandling.rst index 2f4b7335..b565aa3e 100644 --- a/docs/errorhandling.rst +++ b/docs/errorhandling.rst @@ -210,7 +210,7 @@ behavior. If there is an error handler registered for ``InternalServerError``, this will be invoked. As of Flask 1.1.0, this error handler will always be passed an instance of ``InternalServerError``, not the original -unhandled error. The original error is available as ``e.original_error``. +unhandled error. The original error is available as ``e.original_exception``. Until Werkzeug 1.0.0, this attribute will only exist during unhandled errors, use ``getattr`` to get access it for compatibility. diff --git a/docs/templating.rst b/docs/templating.rst index 74c6ad7c..0d558c8c 100644 --- a/docs/templating.rst +++ b/docs/templating.rst @@ -3,7 +3,7 @@ Templates ========= -Flask leverages Jinja2 as template engine. You are obviously free to use +Flask leverages Jinja2 as its template engine. You are obviously free to use a different template engine, but you still have to install Jinja2 to run Flask itself. This requirement is necessary to enable rich extensions. An extension can depend on Jinja2 being present. @@ -100,7 +100,7 @@ by default: Standard Filters ---------------- -These filters are available in Jinja2 additionally to the filters provided +Flask provides the following Jinja2 filters in addition to the filters provided by Jinja2 itself: .. function:: tojson diff --git a/docs/testing.rst b/docs/testing.rst index 2a00d211..20064e5a 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -423,7 +423,7 @@ command line. :: @app.cli.command('hello') @click.option('--name', default='World') - def hello_command(name) + def hello_command(name): click.echo(f'Hello, {name}!') def test_hello(): @@ -450,7 +450,7 @@ This is useful for testing complex validation rules and custom types. :: @app.cli.command('hello') @click.option('--name', default='World', callback=upper) - def hello_command(name) + def hello_command(name): click.echo(f'Hello, {name}!') def test_hello_params():