Added more versionadded directives
This commit is contained in:
parent
51a89bf35e
commit
f1cde5bbfc
2 changed files with 24 additions and 0 deletions
|
|
@ -83,6 +83,15 @@ class Flask(_PackageBoundObject):
|
||||||
up, that debugging information is lost. (For example it would only
|
up, that debugging information is lost. (For example it would only
|
||||||
pick up SQL queries in `yourapplicaiton.app` and not
|
pick up SQL queries in `yourapplicaiton.app` and not
|
||||||
`yourapplication.views.frontend`)
|
`yourapplication.views.frontend`)
|
||||||
|
|
||||||
|
.. versionadded:: 0.5
|
||||||
|
The `static_path` parameter was added.
|
||||||
|
|
||||||
|
:param import_name: the name of the application package
|
||||||
|
:param static_path: can be used to specify a different path for the
|
||||||
|
static files on the web. Defaults to ``/static``.
|
||||||
|
This does not affect the folder the files are served
|
||||||
|
*from*.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#: The class that is used for request objects. See :class:`~flask.Request`
|
#: The class that is used for request objects. See :class:`~flask.Request`
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,21 @@ class Module(_PackageBoundObject):
|
||||||
|
|
||||||
For a gentle introduction into modules, checkout the
|
For a gentle introduction into modules, checkout the
|
||||||
:ref:`working-with-modules` section.
|
:ref:`working-with-modules` section.
|
||||||
|
|
||||||
|
.. versionadded:: 0.5
|
||||||
|
The `static_path` parameter was added.
|
||||||
|
|
||||||
|
:param import_name: the name of the Python package or module
|
||||||
|
implementing this :class:`Module`.
|
||||||
|
:param name: the internal short name for the module. Unless specified
|
||||||
|
the rightmost part of the import name
|
||||||
|
:param url_prefix: an optional string that is used to prefix all the
|
||||||
|
URL rules of this module. This can also be specified
|
||||||
|
when registering the module with the application.
|
||||||
|
:param static_path: can be used to specify a different path for the
|
||||||
|
static files on the web. Defaults to ``/static``.
|
||||||
|
This does not affect the folder the files are served
|
||||||
|
*from*.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, import_name, name=None, url_prefix=None,
|
def __init__(self, import_name, name=None, url_prefix=None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue