Skip to content
Myr

Do not suggest deprecated flask.ext.*

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Adrian Moennich · committed by Adrian Moennich · parent 09973a7 · Browse files · 1 file+0 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−8 removed

  • other:+0 added−8 removed

1 file+0 added−8 removed

modified:docs/extensiondev.rst-8 removed
27 unmodified lines
28"Flask" somewhere in that name and that you check the capitalization.29This is how users can then register dependencies to your extension in30their :file:`setup.py` files.3132Flask sets up a redirect package called :data:`flask.ext` where users33should import the extensions from. If you for instance have a package34called ``flask_something`` users would import it as35``flask.ext.something``. This is done to transition from the old36namespace packages. See :ref:`ext-import-transition` for more details.3732But what do extensions look like themselves? An extension has to ensure33that it works with multiple Flask application instances at once. This is34a requirement because many people will use patterns like the35:ref:`app-factories` pattern to create their application as needed to aid
350 unmodified lines
38610. An extension currently has to support Python 2.6 as well as387 Python 2.7388389396.. _ext-import-transition:397390Extension Import Transition391---------------------------392393In early versions of Flask we recommended using namespace packages for Flask
17 unmodified lines