Skip to content
Myr

Reworded before 0.8 ext docs.

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 54875e9 · Browse files · 1 file+7 added−9 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+7 added−9 removed

  • other:+7 added−9 removed

1 file+7 added−9 removed

modified:docs/extensions.rst+7 added-9 removed
21 unmodified lines
22importable from ``flask.ext.foo``::2324 from flask.ext import foo2526Flask < 0.827-----------26Flask Before 0.827----------------2829If you are using Flask 0.7 or earlier the :data:`flask.ext` package will not30exist, instead you have to import from ``flaskext.foo`` or ``flask_foo``31depending on how the extension is distributed.31depending on how the extension is distributed. If you want to develop an32application that supports Flask 0.7 or earlier you should still import33from the :data:`flask.ext` package. We provide you with a compatibility34module that provides this package for older versions of Flask. You can35download it from github: `flaskext_compat.py`_3633We recommend importing from ``flask.ext`` even with older versions of34Flask however. If you have an application that needs to work with35versions of Flask older than 0.8 you should activate the36``flaskext_compat`` module which provides the ``flask.ext`` module if37you activate it. You can download it from github: `flaskext_compat.py`_3837And here is how you can use it::3839 import flaskext_compat40 flaskext_compat.activate()
8 unmodified lines