Skip to content
Myr

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

4 files+6 added−6 removed

modified:docs/deploying/index.rst+1 added-1 removed
15 unmodified lines
16Hosted options17--------------1819- `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 lines
modified:docs/errorhandling.rst+1 added-1 removed
208 unmodified lines
209210If there is an error handler registered for ``InternalServerError``,211this will be invoked. As of Flask 1.1.0, this error handler will always212be passed an instance of ``InternalServerError``, not the original213unhandled error. The original error is available as ``e.original_error``.213unhandled error. The original error is available as ``e.original_exception``.214Until Werkzeug 1.0.0, this attribute will only exist during unhandled215errors, use ``getattr`` to get access it for compatibility.216217.. code-block:: python
80 unmodified lines
modified:docs/templating.rst+2 added-2 removed
1 unmodified line
23Templates4=========56Flask leverages Jinja2 as template engine. You are obviously free to use6Flask leverages Jinja2 as its template engine. You are obviously free to use7a different template engine, but you still have to install Jinja2 to run8Flask itself. This requirement is necessary to enable rich extensions.9An extension can depend on Jinja2 being present.10
88 unmodified lines
99100Standard Filters101----------------102103These filters are available in Jinja2 additionally to the filters provided103Flask provides the following Jinja2 filters in addition to the filters provided104by Jinja2 itself:105106.. function:: tojson107 :noindex:
129 unmodified lines
modified:docs/testing.rst+2 added-2 removed
421 unmodified lines
422 import click423424 @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}!')428429 def test_hello():430 runner = app.test_cli_runner()
18 unmodified lines
449 return value.upper()450451 @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}!')455456 def test_hello_params():457 context = hello_command.make_context('hello', ['--name', 'flask'])
4 unmodified lines