forked from orbit-oss/flask
Documented some changes in config handling.
This commit is contained in:
parent
fa9817778c
commit
34a494713c
2 changed files with 4 additions and 0 deletions
1
CHANGES
1
CHANGES
|
|
@ -36,6 +36,7 @@ Release date to be announced, codename to be selected
|
||||||
- Use Last-Modified for static file sending instead of Date which
|
- Use Last-Modified for static file sending instead of Date which
|
||||||
was incorrectly introduced in 0.6.
|
was incorrectly introduced in 0.6.
|
||||||
- Added `create_jinja_loader` to override the loader creation process.
|
- Added `create_jinja_loader` to override the loader creation process.
|
||||||
|
- Implemented a silent flag for `config.from_pyfile`.
|
||||||
|
|
||||||
Version 0.6.1
|
Version 0.6.1
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,9 @@ class Config(dict):
|
||||||
root path.
|
root path.
|
||||||
:param silent: set to `True` if you want silent to fail for missing
|
:param silent: set to `True` if you want silent to fail for missing
|
||||||
files.
|
files.
|
||||||
|
|
||||||
|
.. versionadded:: 0.7
|
||||||
|
`silent` parameter.
|
||||||
"""
|
"""
|
||||||
filename = os.path.join(self.root_path, filename)
|
filename = os.path.join(self.root_path, filename)
|
||||||
d = imp.new_module('config')
|
d = imp.new_module('config')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue