Skip to main content

get_load_dotenv

Get whether the user has disabled loading default dotenv files by setting :envvar:FLASK_SKIP_DOTENV. The default is True, load the files.

def get_load_dotenv(
default: bool = True
) - > bool

Get whether the user has disabled loading default dotenv files by setting :envvar:FLASK_SKIP_DOTENV. The default is True, load the files.

Parameters

NameTypeDescription
defaultbool = TrueThe boolean value to return if the FLASK_SKIP_DOTENV environment variable is not set.

Returns

TypeDescription
boolWhether dotenv files should be loaded (True) or skipped (False).