Skip to content
Myr

check FLASK_SKIP_DOTENV in app.run

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

authored by David Lord · committed by David Lord · parent 81bde0d · Browse files · 1 file+6 added−4 removed
This commit

State

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

Diff stats

1 file+6 added−4 removed

  • other:+6 added−4 removed

1 file+6 added−4 removed

modified:flask/app.py+6 added-4 removed
25 unmodified lines
26from ._compat import integer_types, reraise, string_types, text_type27from .config import Config, ConfigAttribute28from .ctx import AppContext, RequestContext, _AppCtxGlobals29from .globals import _request_ctx_stack, g, request, session30from .helpers import _PackageBoundObject, \31 _endpoint_from_view_func, find_package, get_env, get_debug_flag, \32 get_flashed_messages, locked_cached_property, url_for30from .helpers import (31 _PackageBoundObject,32 _endpoint_from_view_func, find_package, get_env, get_debug_flag,33 get_flashed_messages, locked_cached_property, url_for, get_load_dotenv34)35from .logging import create_logger36from .sessions import SecureCookieSessionInterface37from .signals import appcontext_tearing_down, got_request_exception, \38 request_finished, request_started, request_tearing_down
866 unmodified lines
905 from .debughelpers import explain_ignored_app_run906 explain_ignored_app_run()907 return908907 if load_dotenv:909 if get_load_dotenv(load_dotenv):910 cli.load_dotenv()911912 # if set, let env vars override previous values913 if 'FLASK_ENV' in os.environ:
1402 unmodified lines