Skip to content
Myr

Merge pull request #4742 from pallets/env-default

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix default value of app.env

authored by David Lord · committed by GitHub · parents 4984753, a6a7a57 · Browse files · 2 files+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:src/flask/app.py+1 added-1 removed
825 unmodified lines
826 root_path = self.root_path827 if instance_relative:828 root_path = self.instance_path829 defaults = dict(self.default_config)830 defaults["ENV"] = os.environ.get("FLASK_ENV") or "development"830 defaults["ENV"] = os.environ.get("FLASK_ENV") or "production"831 defaults["DEBUG"] = get_debug_flag()832 return self.config_class(root_path, defaults)833834 def make_aborter(self) -> Aborter:
1714 unmodified lines
modified:CHANGES.rst+3 added
1 unmodified line
2-------------34Unreleased56- Fix the default value for ``app.env`` to be ``"production"``. This7 attribute remains deprecated. :issue:`4740`8910Version 2.2.111-------------1213Released 2022-08-03
1391 unmodified lines