Skip to main content

settings

generate_env_content

def generate_env_content()

Generate valid contents of an .env file

generate_env_file

def generate_env_file(filename='.env')

Create a valid .env file

get_settings

@lru_cache()
def get_settings()

Get a cached instance of the settings, loading values from the .env if present. If .env is not present, prints a warning and generates one for the user.