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 = TrueWhat to return if the FLASK_SKIP_DOTENV environment variable isn't set.

Returns

TypeDescription
boolA boolean indicating whether dotenv files should be loaded based on the environment variable configuration.