Merge branch '2.2.x'

This commit is contained in:
David Lord 2022-08-04 07:32:51 -07:00
commit 795d3e25aa
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 11 additions and 2 deletions

View file

@ -4,6 +4,15 @@ Version 2.3.0
Unreleased 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 Version 2.2.1
------------- -------------

View file

@ -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 as stream_template
from .templating import stream_template_string as stream_template_string from .templating import stream_template_string as stream_template_string
__version__ = "2.2.1" __version__ = "2.3.0.dev"
def __getattr__(name): def __getattr__(name):

View file

@ -827,7 +827,7 @@ class Flask(Scaffold):
if instance_relative: if instance_relative:
root_path = self.instance_path root_path = self.instance_path
defaults = dict(self.default_config) 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() defaults["DEBUG"] = get_debug_flag()
return self.config_class(root_path, defaults) return self.config_class(root_path, defaults)