forked from orbit-oss/flask
Documented flask.ext.
This commit is contained in:
parent
8840973a33
commit
1e6c5f0975
2 changed files with 18 additions and 0 deletions
1
CHANGES
1
CHANGES
|
|
@ -45,6 +45,7 @@ Relase date to be decided, codename to be chosen.
|
||||||
- Added finer control over the session cookie parameters.
|
- Added finer control over the session cookie parameters.
|
||||||
- HEAD requests to a method view now automatically dispatch to the `get`
|
- HEAD requests to a method view now automatically dispatch to the `get`
|
||||||
method if no handler was implemented.
|
method if no handler was implemented.
|
||||||
|
- Implemented the virtual :mod:`flask.ext` package to import extensions from.
|
||||||
|
|
||||||
Version 0.7.3
|
Version 0.7.3
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
17
docs/api.rst
17
docs/api.rst
|
|
@ -341,6 +341,23 @@ Configuration
|
||||||
.. autoclass:: Config
|
.. autoclass:: Config
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Extensions
|
||||||
|
----------
|
||||||
|
|
||||||
|
.. data:: flask.ext
|
||||||
|
|
||||||
|
This module acts as redirect import module to Flask extensions. It was
|
||||||
|
added in 0.8 as the canonical way to import Flask extensions and makes
|
||||||
|
it possible for us to have more flexibility in how we distribute
|
||||||
|
extensions.
|
||||||
|
|
||||||
|
If you want to use an extension named “Flask-Foo” you would import it
|
||||||
|
from :data:`~flask.ext` as follows::
|
||||||
|
|
||||||
|
from flask.ext import foo
|
||||||
|
|
||||||
|
.. versionadded:: 0.8
|
||||||
|
|
||||||
Useful Internals
|
Useful Internals
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue