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
boolTrue if dotenv files should be loaded, False otherwise, based on the FLASK_SKIP_DOTENV environment variable.