forked from orbit-oss/flask
Deprecate flask.ext
* Add deprecation warning to ext pkg * Add docs on deprecation of flask.ext * Improve deprecation warnings * Add headers for better distinction, fix ordering issue of paragraphs
This commit is contained in:
parent
cc536c8a7b
commit
d3d8a4694a
4 changed files with 65 additions and 22 deletions
|
|
@ -18,10 +18,10 @@ Using Extensions
|
|||
Extensions typically have documentation that goes along that shows how to
|
||||
use it. There are no general rules in how extensions are supposed to
|
||||
behave but they are imported from common locations. If you have an
|
||||
extension called ``Flask-Foo`` or ``Foo-Flask`` it will be always
|
||||
importable from ``flask.ext.foo``::
|
||||
extension called ``Flask-Foo`` or ``Foo-Flask`` it should be always
|
||||
importable from ``flask_foo``::
|
||||
|
||||
from flask.ext import foo
|
||||
import flask_foo
|
||||
|
||||
Flask Before 0.8
|
||||
----------------
|
||||
|
|
@ -44,5 +44,6 @@ And here is how you can use it::
|
|||
Once the ``flaskext_compat`` module is activated the :data:`flask.ext` will
|
||||
exist and you can start importing from there.
|
||||
|
||||
|
||||
.. _Flask Extension Registry: http://flask.pocoo.org/extensions/
|
||||
.. _flaskext_compat.py: https://raw.githubusercontent.com/mitsuhiko/flask/master/scripts/flaskext_compat.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue