"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/extensions.rst" between
flask-1.1.1.tar.gz and flask-1.1.2.tar.gz

About: Flask is a lightweight Python WSGI web application framework.

extensions.rst  (flask-1.1.1):extensions.rst  (flask-1.1.2)
skipping to change at line 14 skipping to change at line 14
========== ==========
Extensions are extra packages that add functionality to a Flask Extensions are extra packages that add functionality to a Flask
application. For example, an extension might add support for sending application. For example, an extension might add support for sending
email or connecting to a database. Some extensions add entire new email or connecting to a database. Some extensions add entire new
frameworks to help build certain types of applications, like a REST API. frameworks to help build certain types of applications, like a REST API.
Finding Extensions Finding Extensions
------------------ ------------------
Flask extensions are usually named "Flask-Foo" or "Foo-Flask". Many Flask extensions are usually named "Flask-Foo" or "Foo-Flask". You can
extensions are listed in the `Extension Registry`_, which can be updated search PyPI for packages tagged with `Framework :: Flask <pypi_>`_.
by extension developers. You can also search PyPI for packages tagged
with `Framework :: Flask <pypi_>`_.
Using Extensions Using Extensions
---------------- ----------------
Consult each extension's documentation for installation, configuration, Consult each extension's documentation for installation, configuration,
and usage instructions. Generally, extensions pull their own and usage instructions. Generally, extensions pull their own
configuration from :attr:`app.config <flask.Flask.config>` and are configuration from :attr:`app.config <flask.Flask.config>` and are
passed an application instance during initialization. For example, passed an application instance during initialization. For example,
an extension called "Flask-Foo" might be used like this:: an extension called "Flask-Foo" might be used like this::
skipping to change at line 43 skipping to change at line 41
app.config.update( app.config.update(
FOO_BAR='baz', FOO_BAR='baz',
FOO_SPAM='eggs', FOO_SPAM='eggs',
) )
foo.init_app(app) foo.init_app(app)
Building Extensions Building Extensions
------------------- -------------------
While the `Extension Registry`_ contains many Flask extensions, you may While the `PyPI <pypi_>`_ contains many Flask extensions, you may
not find an extension that fits your need. If this is the case, you can not find an extension that fits your need. If this is the case, you can
create your own. Read :ref:`extension-dev` to develop your own Flask create your own. Read :doc:`/extensiondev` to develop your own Flask
extension. extension.
.. _Extension Registry: http://flask.pocoo.org/extensions/
.. _pypi: https://pypi.org/search/?c=Framework+%3A%3A+Flask .. _pypi: https://pypi.org/search/?c=Framework+%3A%3A+Flask
 End of changes. 4 change blocks. 
7 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)