forked from orbit-oss/flask
Merge branch '2.2.x'
This commit is contained in:
commit
795d3e25aa
3 changed files with 11 additions and 2 deletions
|
|
@ -4,6 +4,15 @@ Version 2.3.0
|
|||
Unreleased
|
||||
|
||||
|
||||
Version 2.2.2
|
||||
-------------
|
||||
|
||||
Unreleased
|
||||
|
||||
- Fix the default value for ``app.env`` to be ``"production"``. This
|
||||
attribute remains deprecated. :issue:`4740`
|
||||
|
||||
|
||||
Version 2.2.1
|
||||
-------------
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ from .templating import render_template_string as render_template_string
|
|||
from .templating import stream_template as stream_template
|
||||
from .templating import stream_template_string as stream_template_string
|
||||
|
||||
__version__ = "2.2.1"
|
||||
__version__ = "2.3.0.dev"
|
||||
|
||||
|
||||
def __getattr__(name):
|
||||
|
|
|
|||
|
|
@ -827,7 +827,7 @@ class Flask(Scaffold):
|
|||
if instance_relative:
|
||||
root_path = self.instance_path
|
||||
defaults = dict(self.default_config)
|
||||
defaults["ENV"] = os.environ.get("FLASK_ENV") or "development"
|
||||
defaults["ENV"] = os.environ.get("FLASK_ENV") or "production"
|
||||
defaults["DEBUG"] = get_debug_flag()
|
||||
return self.config_class(root_path, defaults)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue